Since elf/ifuncmain9.c fails at run-time when compiled with GCC 5.4 or
older (PR ipa/81128), return EXIT_UNSUPPORTED for GCC 5.4 or older.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
#include <config.h>
-# include <stdbool.h>
-# include <stdio.h>
+#include <stdbool.h>
+#include <stdio.h>
+#if __GNUC_PREREQ (5, 5)
/* Do not use the test framework, so that the process setup is not
disturbed. */
return errors;
}
+#else
+#include <support/test-driver.h>
+
+int
+main (void)
+{
+ return EXIT_UNSUPPORTED;
+}
+#endif