This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re:[RFA:] fix lack of #ifdef HAVE_C99_RUNTIME in builtins-20.c and elsewhere


+proc check_effective_target_c99_math { } {
+    global srcdir
+    return [check_no_compiler_messages c99_math assembly {
+	#include "builtins-config.h"
+	#ifndef HAVE_C99_RUNTIME
+	#error "No HAVE_C99_RUNTIME"
+	#endif
+    } -I$srcdir/gcc.dg ]
+}

This won't work when running the testsuite outside the build tree. Instead you need to either install the header file or have the compiler #define something with underscores (eg. __HAVE_C99_RUNTIME__). Patch is not OK.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]