diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2019-05-11 02:33:33 +0000 |
|---|---|---|
| committer | Shoaib Meenai <smeenai@fb.com> | 2019-05-11 02:33:33 +0000 |
| commit | bbdc8593e1f4ebff0c2506dc0913f2bc8acdaa61 (patch) | |
| tree | 9e531069e1ab0b422049bc7d5cdf17b36b8df8ff | |
| parent | 4bdb136b0f4849575c0ff5e734b49d6e79587e35 (diff) | |
| download | bcm5719-llvm-bbdc8593e1f4ebff0c2506dc0913f2bc8acdaa61.tar.gz bcm5719-llvm-bbdc8593e1f4ebff0c2506dc0913f2bc8acdaa61.zip | |
[compiler-rt] Fix crtbegin.c compilation
We're building with -std=c11 now (as opposed to -std=gnu11), so we can't
use GNU extensions and need to spell inline assembly as __asm__.
llvm-svn: 360503
| -rw-r--r-- | compiler-rt/lib/crt/crtbegin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/crt/crtbegin.c b/compiler-rt/lib/crt/crtbegin.c index cfbe5e5202b..2450ce54e31 100644 --- a/compiler-rt/lib/crt/crtbegin.c +++ b/compiler-rt/lib/crt/crtbegin.c @@ -47,11 +47,11 @@ __attribute__((section(".init_array"), used)) static void (*__init)(void) = __do_init; #else // CRT_HAS_INITFINI_ARRAY #if defined(__i386__) || defined(__x86_64__) -asm(".pushsection .init,\"ax\",@progbits\n\t" +__asm__(".pushsection .init,\"ax\",@progbits\n\t" "call " __USER_LABEL_PREFIX__ "__do_init\n\t" ".popsection"); #elif defined(__arm__) -asm(".pushsection .init,\"ax\",%progbits\n\t" +__asm__(".pushsection .init,\"ax\",%progbits\n\t" "bl " __USER_LABEL_PREFIX__ "__do_init\n\t" ".popsection"); #endif // CRT_HAS_INITFINI_ARRAY @@ -86,11 +86,11 @@ __attribute__((section(".fini_array"), used)) static void (*__fini)(void) = __do_fini; #else // CRT_HAS_INITFINI_ARRAY #if defined(__i386__) || defined(__x86_64__) -asm(".pushsection .fini,\"ax\",@progbits\n\t" +__asm__(".pushsection .fini,\"ax\",@progbits\n\t" "call " __USER_LABEL_PREFIX__ "__do_fini\n\t" ".popsection"); #elif defined(__arm__) -asm(".pushsection .fini,\"ax\",%progbits\n\t" +__asm__(".pushsection .fini,\"ax\",%progbits\n\t" "bl " __USER_LABEL_PREFIX__ "__do_fini\n\t" ".popsection"); #endif |

