]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Disable non-opt error temporarily, and __sec_comment for clang
authorStan Shebs <stanshebs@google.com>
Mon, 26 Feb 2018 21:50:53 +0000 (13:50 -0800)
committerStan Shebs <stanshebs@google.com>
Mon, 26 Feb 2018 21:50:53 +0000 (13:50 -0800)
include/libc-symbols.h

index eb4dbbe7776714a804d1116f93c1f650da9ff552..c40f5fb6ca37d14a62cc362320006931a9942b76 100644 (file)
 #define _LIBC  1
 
 /* Some files must be compiled with optimization on.  */
+/* This is a nuisance while experimenting; re-enable when done.  */
+#if 0
 #if !defined __ASSEMBLER__ && !defined __OPTIMIZE__
 # error "glibc cannot be compiled without optimization"
 #endif
+#endif
 
 /* -ffast-math cannot be applied to the C library, as it alters the ABI.
    Some test components that use -ffast-math are currently not part of
 
 /* Tacking on "\n\t#" to the section name makes gcc put it's bogus
    section attributes on what looks like a comment to the assembler.  */
+/* Clang sees newline and helpfully adds additional quotes; disable that.  */
+#if defined(__clang__)
+# define __sec_comment
+#else
 #ifdef HAVE_SECTION_QUOTES
 # define __sec_comment "\"\n\t#\""
 #else
 # define __sec_comment "\n\t#"
 #endif
+#endif
 #define link_warning(symbol, msg) \
   __make_section_unallocated (".gnu.warning." #symbol) \
   static const char __evoke_link_warning_##symbol[]    \