From: Thomas Schwinge Date: Fri, 15 Dec 2023 09:03:12 +0000 (+0100) Subject: Fix 'gcc.dg/pr110279-2.c' syntax error due to '__attribute_noinline__' X-Git-Tag: basepoints/gcc-15~3558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e9e8faea4086b3b8aef2355fc12c1559d425f6;p=thirdparty%2Fgcc.git Fix 'gcc.dg/pr110279-2.c' syntax error due to '__attribute_noinline__' For example, for GCN or nvptx target configurations, using newlib: FAIL: gcc.dg/pr110279-2.c (test for excess errors) UNRESOLVED: gcc.dg/pr110279-2.c scan-tree-dump-not reassoc2 "was chosen for reassociation" UNRESOLVED: gcc.dg/pr110279-2.c scan-tree-dump-times optimized "\\.FMA " 3 [...]/source-gcc/gcc/testsuite/gcc.dg/pr110279-2.c:11:1: error: unknown type name '__attribute_noinline__' [...]/source-gcc/gcc/testsuite/gcc.dg/pr110279-2.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'foo' We cannot assume 'stdio.h' to define '__attribute_noinline__' -- but then, that also isn't necessary for this test case (there is nothing to inline into). gcc/testsuite/ * gcc.dg/pr110279-2.c: Don't '#include '. Remove '__attribute_noinline__'. --- diff --git a/gcc/testsuite/gcc.dg/pr110279-2.c b/gcc/testsuite/gcc.dg/pr110279-2.c index 0304a77aa669..b6b69969c6b7 100644 --- a/gcc/testsuite/gcc.dg/pr110279-2.c +++ b/gcc/testsuite/gcc.dg/pr110279-2.c @@ -6,9 +6,7 @@ #define LOOP_COUNT 800000000 typedef double data_e; -#include - -__attribute_noinline__ data_e +data_e foo (data_e in) { data_e a1, a2, a3, a4;