[compiler-rt] 0109efe - Revert "Support powerpc when builing without init_array."

Dmitri Gribenko via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 02:33:57 PST 2019


Author: Dmitri Gribenko
Date: 2019-12-19T11:25:14+01:00
New Revision: 0109efe7513dd984cf67d102ce5179a5b24d58f6

URL: https://github.com/llvm/llvm-project/commit/0109efe7513dd984cf67d102ce5179a5b24d58f6
DIFF: https://github.com/llvm/llvm-project/commit/0109efe7513dd984cf67d102ce5179a5b24d58f6.diff

LOG: Revert "Support powerpc when builing without init_array."

This reverts commit 5789e83dedb97588ad75cca36d01ba6c5142d6d3. It broke
the build on aarch64.

Added: 
    

Modified: 
    compiler-rt/lib/crt/crtbegin.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/crt/crtbegin.c b/compiler-rt/lib/crt/crtbegin.c
index 812cea4143f5..5b56ea3df757 100644
--- a/compiler-rt/lib/crt/crtbegin.c
+++ b/compiler-rt/lib/crt/crtbegin.c
@@ -57,15 +57,8 @@ __asm__(".pushsection .init,\"ax\", at progbits\n\t"
 __asm__(".pushsection .init,\"ax\",%progbits\n\t"
     "bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
     ".popsection");
-#elif defined(__powerpc__) || defined(__powerpc64__)
-__asm__(".pushsection .init,\"ax\", at progbits\n\t"
-    "bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
-    "nop\n\t"
-    ".popsection");
-#else
-#error "crtbegin without .init_fini array unimplemented for this architecture"
-#endif // defined(various architectures)
-#endif // CRT_HAS_INITFINI_ARRAY
+#endif  // CRT_HAS_INITFINI_ARRAY
+#endif
 
 #ifndef CRT_HAS_INITFINI_ARRAY
 static fp __DTOR_LIST__[]
@@ -104,12 +97,5 @@ __asm__(".pushsection .fini,\"ax\", at progbits\n\t"
 __asm__(".pushsection .fini,\"ax\",%progbits\n\t"
     "bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
     ".popsection");
-#elif defined(__powerpc__) || defined(__powerpc64__)
-__asm__(".pushsection .fini,\"ax\", at progbits\n\t"
-    "bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
-    "nop\n\t"
-    ".popsection");
-#else
-#error "crtbegin without .init_fini array unimplemented for this architecture"
-#endif  // defined(various architectures)
+#endif
 #endif  // CRT_HAS_INIT_FINI_ARRAY


        


More information about the llvm-commits mailing list