[compiler-rt] r359655 - Use __extension__ to suppress __EH_FRAME_LIST__ warnings
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 23:25:21 PDT 2019
Author: maskray
Date: Tue Apr 30 23:25:21 2019
New Revision: 359655
URL: http://llvm.org/viewvc/llvm-project?rev=359655&view=rev
Log:
Use __extension__ to suppress __EH_FRAME_LIST__ warnings
gcc -pedantic => warning: ISO C forbids empty initializer braces
clang -pedantic => -Wzero-length-array + -Wgnu-empty-initializer
Modified:
compiler-rt/trunk/lib/crt/crtbegin.c
Modified: compiler-rt/trunk/lib/crt/crtbegin.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/crt/crtbegin.c?rev=359655&r1=359654&r2=359655&view=diff
==============================================================================
--- compiler-rt/trunk/lib/crt/crtbegin.c (original)
+++ compiler-rt/trunk/lib/crt/crtbegin.c Tue Apr 30 23:25:21 2019
@@ -10,7 +10,7 @@
__attribute__((visibility("hidden"))) void *__dso_handle = &__dso_handle;
-static void *__EH_FRAME_LIST__[]
+__extension__ static void *__EH_FRAME_LIST__[]
__attribute__((section(".eh_frame"), aligned(sizeof(void *)))) = {};
extern void __register_frame_info(const void *, void *) __attribute__((weak));
More information about the llvm-commits
mailing list