[llvm-commits] [compiler-rt] r172078 - in /compiler-rt/trunk/lib/ubsan: ubsan_handlers.h ubsan_handlers_cxx.h

Will Dietz wdietz2 at illinois.edu
Thu Jan 10 09:01:13 PST 2013


Author: wdietz2
Date: Thu Jan 10 11:01:13 2013
New Revision: 172078

URL: http://llvm.org/viewvc/llvm-project?rev=172078&view=rev
Log:
[ubsan] Move attribute specifier to fix build with gcc.

Modified:
    compiler-rt/trunk/lib/ubsan/ubsan_handlers.h
    compiler-rt/trunk/lib/ubsan/ubsan_handlers_cxx.h

Modified: compiler-rt/trunk/lib/ubsan/ubsan_handlers.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_handlers.h?rev=172078&r1=172077&r2=172078&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_handlers.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_handlers.h Thu Jan 10 11:01:13 2013
@@ -25,10 +25,10 @@
 };
 
 #define RECOVERABLE(checkname, ...) \
-  SANITIZER_INTERFACE_ATTRIBUTE \
-  extern "C" void __ubsan_handle_ ## checkname( __VA_ARGS__ ); \
-  SANITIZER_INTERFACE_ATTRIBUTE \
-  extern "C" void __ubsan_handle_ ## checkname ## _abort( __VA_ARGS__ );
+  extern "C" SANITIZER_INTERFACE_ATTRIBUTE \
+    void __ubsan_handle_ ## checkname( __VA_ARGS__ ); \
+  extern "C" SANITIZER_INTERFACE_ATTRIBUTE \
+    void __ubsan_handle_ ## checkname ## _abort( __VA_ARGS__ );
 
 /// \brief Handle a runtime type check failure, caused by either a misaligned
 /// pointer, a null pointer, or a pointer to insufficient storage for the
@@ -72,11 +72,11 @@
 };
 
 /// \brief Handle a __builtin_unreachable which is reached.
-SANITIZER_INTERFACE_ATTRIBUTE
-extern "C" void __ubsan_handle_builtin_unreachable(UnreachableData *Data);
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
+void __ubsan_handle_builtin_unreachable(UnreachableData *Data);
 /// \brief Handle reaching the end of a value-returning function.
-SANITIZER_INTERFACE_ATTRIBUTE
-extern "C" void __ubsan_handle_missing_return(UnreachableData *Data);
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
+void __ubsan_handle_missing_return(UnreachableData *Data);
 
 struct VLABoundData {
   SourceLocation Loc;

Modified: compiler-rt/trunk/lib/ubsan/ubsan_handlers_cxx.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_handlers_cxx.h?rev=172078&r1=172077&r2=172078&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_handlers_cxx.h (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_handlers_cxx.h Thu Jan 10 11:01:13 2013
@@ -28,11 +28,11 @@
 /// \brief Handle a runtime type check failure, caused by an incorrect vptr.
 /// When this handler is called, all we know is that the type was not in the
 /// cache; this does not necessarily imply the existence of a bug.
-SANITIZER_INTERFACE_ATTRIBUTE
-extern "C" void __ubsan_handle_dynamic_type_cache_miss(
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
+void __ubsan_handle_dynamic_type_cache_miss(
   DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash);
-SANITIZER_INTERFACE_ATTRIBUTE
-extern "C" void __ubsan_handle_dynamic_type_cache_miss_abort(
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
+void __ubsan_handle_dynamic_type_cache_miss_abort(
   DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash);
 
 }





More information about the llvm-commits mailing list