[compiler-rt] r258992 - [cfi] Fix a warning in tests.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 13:49:03 PST 2016


Author: eugenis
Date: Wed Jan 27 15:49:03 2016
New Revision: 258992

URL: http://llvm.org/viewvc/llvm-project?rev=258992&view=rev
Log:
[cfi] Fix a warning in tests.

test/cfi/cross-dso/dlopen.cpp:67:45: warning: GCC does not allow 'aligned' attribute in this position on a function definition [-Wgcc-compat]
extern "C" void do_nothing() __attribute__((aligned(4096))) {}

Modified:
    compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp

Modified: compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp?rev=258992&r1=258991&r2=258992&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp (original)
+++ compiler-rt/trunk/test/cfi/cross-dso/dlopen.cpp Wed Jan 27 15:49:03 2016
@@ -64,7 +64,7 @@ extern "C" void *create_B() {
   return (void *)(new B());
 }
 
-extern "C" void do_nothing() __attribute__((aligned(4096))) {}
+extern "C" __attribute__((aligned(4096))) void do_nothing() {}
 
 #else
 




More information about the llvm-commits mailing list