From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C4C73858D3C; Sun, 24 Oct 2021 20:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4C73858D3C From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/102910] cf-descriptor-5-c.c fails to build Date: Sun, 24 Oct 2021 20:59:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2021 20:59:53 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102910 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to David Edelsohn from comment #5) > Previously the test case was unresolved because it referenced alloca with= out > a declaration. >=20 > char *adata =3D (char *) alloca (n); >=20 > If you want to call __builtin_alloca() because this is a testcase for GCC, > which provides __builtin_alloca(), fine. You should call it directly and > not alloca(). >=20 > If you want to call alloca(), then you need logic for the different syste= ms > that declare alloca() in different header files. >=20 > #ifdef alloca >=20 > is wrong because it makes the testcase system dependent and tests differe= nt > behavior. It seems you broke it with % git blame gcc/testsuite/gfortran.dg/c-interop/cf-descriptor-5-c.c cb17b5054118 (Sandra Loosemore 2021-06-30 20:03:27 -0700 1) #include cb17b5054118 (Sandra Loosemore 2021-06-30 20:03:27 -0700 2) #include 000000000000 (Not Committed Yet 2021-10-24 13:54:29 -0700 3) #ifndef alloca f1408388f2e2 (David Edelsohn 2021-09-30 16:43:58 -0400 4) #include 000000000000 (Not Committed Yet 2021-10-24 13:54:29 -0700 5) #endif Shouldn't the person who broke the testcase fix it? Or, is it okay for anyone to commit an unreviewed knowingly broken "fix" to paper over a failure on whatever target they are working on?=