[compiler-rt] r312246 - Revert r312240

Alex Lorenz via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 08:51:23 PDT 2017


Author: arphaman
Date: Thu Aug 31 08:51:23 2017
New Revision: 312246

URL: http://llvm.org/viewvc/llvm-project?rev=312246&view=rev
Log:
Revert r312240

The buildbots have shown that -Wstrict-prototypes behaves differently in GCC
and Clang so we should keep it disabled until Clang follows GCC's behaviour

Modified:
    compiler-rt/trunk/lib/profile/GCDAProfiling.c
    compiler-rt/trunk/lib/profile/InstrProfiling.h
    compiler-rt/trunk/lib/profile/InstrProfilingFile.c
    compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
    compiler-rt/trunk/lib/profile/InstrProfilingUtil.h

Modified: compiler-rt/trunk/lib/profile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/GCDAProfiling.c?rev=312246&r1=312245&r2=312246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/GCDAProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/GCDAProfiling.c Thu Aug 31 08:51:23 2017
@@ -92,7 +92,7 @@ static int fd = -1;
 /*
  * A list of functions to write out the data.
  */
-typedef void (*writeout_fn)(void);
+typedef void (*writeout_fn)();
 
 struct writeout_fn_node {
   writeout_fn fn;
@@ -105,7 +105,7 @@ static struct writeout_fn_node *writeout
 /*
  *  A list of flush functions that our __gcov_flush() function should call.
  */
-typedef void (*flush_fn)(void);
+typedef void (*flush_fn)();
 
 struct flush_fn_node {
   flush_fn fn;

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.h?rev=312246&r1=312245&r2=312246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.h Thu Aug 31 08:51:23 2017
@@ -63,8 +63,8 @@ const char *__llvm_profile_begin_names(v
 const char *__llvm_profile_end_names(void);
 uint64_t *__llvm_profile_begin_counters(void);
 uint64_t *__llvm_profile_end_counters(void);
-ValueProfNode *__llvm_profile_begin_vnodes(void);
-ValueProfNode *__llvm_profile_end_vnodes(void);
+ValueProfNode *__llvm_profile_begin_vnodes();
+ValueProfNode *__llvm_profile_end_vnodes();
 
 /*!
  * \brief Clear profile counters to zero.
@@ -164,7 +164,7 @@ void __llvm_profile_initialize_file(void
  * merge mode is turned on for instrumented programs with shared libs).
  * Side-effect: this API call will invoke malloc with dynamic memory allocation.
  */
-const char *__llvm_profile_get_path_prefix(void);
+const char *__llvm_profile_get_path_prefix();
 
 /*! \brief Get the magic token for the file format. */
 uint64_t __llvm_profile_get_magic(void);

Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=312246&r1=312245&r2=312246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Thu Aug 31 08:51:23 2017
@@ -86,7 +86,7 @@ COMPILER_RT_WEAK lprofFilename lprofCurF
                                                    0, 0, 0, PNS_unknown};
 
 int getpid(void);
-static int getCurFilenameLength(void);
+static int getCurFilenameLength();
 static const char *getCurFilename(char *FilenameBuf);
 static unsigned doMerging() { return lprofCurFilename.MergePoolSize; }
 

Modified: compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingInternal.h?rev=312246&r1=312245&r2=312246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingInternal.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingInternal.h Thu Aug 31 08:51:23 2017
@@ -155,27 +155,27 @@ int lprofWriteDataImpl(ProfDataWriter *W
 void lprofMergeValueProfData(struct ValueProfData *SrcValueProfData,
                              __llvm_profile_data *DstData);
 
-VPDataReaderType *lprofGetVPDataReader(void);
+VPDataReaderType *lprofGetVPDataReader();
 
 /* Internal interface used by test to reset the max number of 
  * tracked values per value site to be \p MaxVals.
  */
 void lprofSetMaxValsPerSite(uint32_t MaxVals);
-void lprofSetupValueProfiler(void);
+void lprofSetupValueProfiler();
 
 /* Return the profile header 'signature' value associated with the current
  * executable or shared library. The signature value can be used to for
  * a profile name that is unique to this load module so that it does not
  * collide with profiles from other binaries. It also allows shared libraries
  * to dump merged profile data into its own profile file. */
-uint64_t lprofGetLoadModuleSignature(void);
+uint64_t lprofGetLoadModuleSignature();
 
 /* 
  * Return non zero value if the profile data has already been
  * dumped to the file.
  */
-unsigned lprofProfileDumped(void);
-void lprofSetProfileDumped(void);
+unsigned lprofProfileDumped();
+void lprofSetProfileDumped();
 
 COMPILER_RT_VISIBILITY extern void (*FreeHook)(void *);
 COMPILER_RT_VISIBILITY extern uint8_t *DynamicBufferIOBuffer;

Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.h?rev=312246&r1=312245&r2=312246&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.h Thu Aug 31 08:51:23 2017
@@ -54,9 +54,9 @@ void *lprofPtrFetchAdd(void **Mem, long
 /* Temporarily suspend SIGKILL. Return value of 1 means a restore is needed.
  * Other return values mean no restore is needed.
  */
-int lprofSuspendSigKill(void);
+int lprofSuspendSigKill();
 
 /* Restore previously suspended SIGKILL. */
-void lprofRestoreSigKill(void);
+void lprofRestoreSigKill();
 
 #endif /* PROFILE_INSTRPROFILINGUTIL_H */




More information about the llvm-commits mailing list