From unknown Mon Sep 08 01:48:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71425 <71425@debbugs.gnu.org> To: bug#71425 <71425@debbugs.gnu.org> Subject: Status: test: Accommodate C23 compilers. Reply-To: bug#71425 <71425@debbugs.gnu.org> Date: Mon, 08 Sep 2025 08:48:00 +0000 retitle 71425 test: Accommodate C23 compilers. reassign 71425 automake-patches submitter 71425 Collin Funk severity 71425 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 01:06:15 2024 Received: (at submit) by debbugs.gnu.org; 8 Jun 2024 05:06:15 +0000 Received: from localhost ([127.0.0.1]:41045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFoHP-0003O9-0E for submit@debbugs.gnu.org; Sat, 08 Jun 2024 01:06:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:50928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFoHM-0003No-5L for submit@debbugs.gnu.org; Sat, 08 Jun 2024 01:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFoH6-0002qc-AK for automake-patches@gnu.org; Sat, 08 Jun 2024 01:05:56 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFoH4-0000Bk-5z for automake-patches@gnu.org; Sat, 08 Jun 2024 01:05:56 -0400 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-652fd0bb5e6so2385315a12.0 for ; Fri, 07 Jun 2024 22:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717823151; x=1718427951; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=fFedBSq1Aa8pWYCfgzKjr+Sik0TxkLxzC2qj84nVbRU=; b=OJlyy2R14ipFzd5ntitVJ6pad3g81f6tqjAh65KpJnR+pMJZmo09Fw3jnvjeB+j1hV PofRgS8scvkm8fN7PzpJvHXqhBcuOPuK3o2gqxNrEU65XLYBJIkJVm/W1DITLQq9DNsm cZjwNrQBdvalT87SBd1rOegeqUu69WobselkbLbvs8b3bMHKH+spd+poylTZkU5xo+C0 sVkrxo2SDdwRcs5MoVua1J75HoxWV412rOzVGq1LEJ8pcLwNLa8dgXqMefPHoVEL5O1I /V0Ng+BtvKP9+rN93SgYR0x6v2WHL+sreDjm0G4RbnUPa1v7IztfGMNyMpanCPDopStH IUow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717823151; x=1718427951; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fFedBSq1Aa8pWYCfgzKjr+Sik0TxkLxzC2qj84nVbRU=; b=EI/PAcvk80kyKq+e1bS9mfKLjxgmeShJa/cEVFQXURQG4khPJhoRMvV1WPrUXylcMI Fly1w7NRfkbS62bPGvbW3XtpYQzOcTLptE9qy/qd2PhzHYOYCFZ8COHJ0FRB6/Lr+qV8 W9csinqVrXqyFzk7WQ25xp5Wc6AggpgNV9OTns8L0dixUadkX42uDt6MtCvStoxrWHhh ttP7bbl0LNv4b5nDgIknpT+iySYeLMYuxvwF8LfrMVbkV/PYnCAxFQ8vaynJcHjuIuJW /N2RdpHL0vSBEdeTKw+cpTyYMwDMxHOKUC7EJ+oKaRVoiclU94UIpraVHhHnGZcxsXrV qJFA== X-Gm-Message-State: AOJu0YxkFLFKLhNjR9xHbLDILpbzOYHugTRlI0Y6z8V0iRQuHl2eFYvG e0RtqhOyvwQMej6bFq6qyzvT0rPxHUafr+CTh5GXmH+fE4fjXY5U4yulmQ== X-Google-Smtp-Source: AGHT+IEmBGiCcO8ceWm5jq8zfd0F1riMcU/AqWUGExV+POwtpri9isK3YaPPNe1RCbV2HEy47x1dfQ== X-Received: by 2002:a05:6a21:6d98:b0:1b0:66d:1596 with SMTP id adf61e73a8af0-1b342b01dc8mr4299994637.57.1717823151062; Fri, 07 Jun 2024 22:05:51 -0700 (PDT) Received: from fedora (c-73-189-213-139.hsd1.ca.comcast.net. [73.189.213.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd75f249sm43315495ad.13.2024.06.07.22.05.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 22:05:50 -0700 (PDT) From: Collin Funk To: automake-patches@gnu.org Subject: test: Accommodate C23 compilers. Date: Fri, 07 Jun 2024 22:05:49 -0700 Message-ID: <878qzggh1u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=collin.funk1@gmail.com; helo=mail-pg1-x531.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In the yacc test I see warnings like this: main.c:4:10: error: implicit declaration of function =E2=80=98yyparse=E2=80= =99 [-Wimplicit-function-declaration] 4 | return yyparse (); | ^~~~~~~ and some for yylex which is declared, but with an empty parameter list instead of void. I assume this is because GCC becoming more strict to conform with C23 requirements. I did these tests with GCC 14.1. I have attached a patch fixing these tests on my system. Collin --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-test-Accommodate-C23-compilers.patch >From 615faf791ccc2aa744c61bd9f5982ebe225748d4 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 7 Jun 2024 21:53:51 -0700 Subject: [PATCH] test: Accommodate C23 compilers. * t/yacc-deleted-headers.sh: Declare yyparse before use. * t/yacc-depend.sh: Likewise. * t/yacc-mix-c-cxx.sh: Likewise. * t/yacc-d-basic.sh: Likewise. Use void instead of empty parameter list. * t/yacc-depend2.sh: Likewise. --- t/yacc-d-basic.sh | 3 ++- t/yacc-deleted-headers.sh | 1 + t/yacc-depend.sh | 1 + t/yacc-depend2.sh | 3 ++- t/yacc-mix-c-cxx.sh | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/t/yacc-d-basic.sh b/t/yacc-d-basic.sh index cc076148b..df3cfece1 100644 --- a/t/yacc-d-basic.sh +++ b/t/yacc-d-basic.sh @@ -49,7 +49,7 @@ cp foo/Makefile.am baz/Makefile.am cat > foo/parse.y << 'END' %{ #include "parse.h" -int yylex () { return 0; } +int yylex (void) { return 0; } void yyerror (const char *s) {} %} %% @@ -69,6 +69,7 @@ sed -e 's/parse\.h/y.tab.h/' bar/parse.y cat > foo/main.c << 'END' #include "parse.h" +extern int yyparse (void); int main () { return yyparse (); diff --git a/t/yacc-deleted-headers.sh b/t/yacc-deleted-headers.sh index 81957eb86..682dd5f5d 100644 --- a/t/yacc-deleted-headers.sh +++ b/t/yacc-deleted-headers.sh @@ -68,6 +68,7 @@ END cat > main1.c << 'END' #include "parse1.h" +extern int yyparse (void); int main (void) { return ZARDOZ + yyparse (); diff --git a/t/yacc-depend.sh b/t/yacc-depend.sh index e5ad6870c..1f67ecac4 100644 --- a/t/yacc-depend.sh +++ b/t/yacc-depend.sh @@ -48,6 +48,7 @@ END cat > main.c << 'END' #include "foo.h" +extern int yyparse (void); int main(void) { return yyparse (); diff --git a/t/yacc-depend2.sh b/t/yacc-depend2.sh index f0529294e..896b86df4 100644 --- a/t/yacc-depend2.sh +++ b/t/yacc-depend2.sh @@ -43,7 +43,7 @@ END cat > foo.y << 'END' %{ -int yylex () { return 0; } +int yylex (void) { return 0; } void yyerror (const char *s) {} %} %token TOKEN @@ -54,6 +54,7 @@ END cat > main.c << 'END' #include "foo.h" +extern int yyparse (void); int main(void) { return yyparse (); diff --git a/t/yacc-mix-c-cxx.sh b/t/yacc-mix-c-cxx.sh index d454fe244..021b4223d 100644 --- a/t/yacc-mix-c-cxx.sh +++ b/t/yacc-mix-c-cxx.sh @@ -71,6 +71,7 @@ END cat > 1.c <<'END' #include "p.h" +extern int yyparse (void); int main () { int new = ZARDOZ; @@ -80,6 +81,7 @@ int main () END cat > 2.c <<'END' +extern int yyparse (void); int main () { int yyparse (); -- 2.45.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 03:24:38 2024 Received: (at 71425) by debbugs.gnu.org; 8 Jun 2024 07:24:38 +0000 Received: from localhost ([127.0.0.1]:52313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFqRK-0002NZ-GL for submit@debbugs.gnu.org; Sat, 08 Jun 2024 03:24:38 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:45242 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFqRH-0002Mw-4H for 71425@debbugs.gnu.org; Sat, 08 Jun 2024 03:24:36 -0400 From: Sam James To: Collin Funk Subject: Re: [bug#71425] test: Accommodate C23 compilers. In-Reply-To: <878qzggh1u.fsf@gmail.com> (Collin Funk's message of "Fri, 07 Jun 2024 22:05:49 -0700") Organization: Gentoo References: <878qzggh1u.fsf@gmail.com> Date: Sat, 08 Jun 2024 08:24:08 +0100 Message-ID: <87a5jvnbhj.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71425 Cc: 71425@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Collin Funk writes: > In the yacc test I see warnings like this: > > main.c:4:10: error: implicit declaration of function =E2=80=98yyparse=E2= =80=99 [-Wimplicit-function-declaration] > 4 | return yyparse (); > | ^~~~~~~ > > and some for yylex which is declared, but with an empty parameter list > instead of void. > > I assume this is because GCC becoming more strict to conform with C23 > requirements. I did these tests with GCC 14.1. > This is actually some work we've been doing to enforce C99 instead: https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors. > I have attached a patch fixing these tests on my system. > > Collin > > [2. text/x-patch; 0001-test-Accommodate-C23-compilers.patch]... --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZmQHGV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv by5vcmcACgkQc4QJ9SDfkZCLVgEA5a7/6XL0eY/izpdgC3Zte06rW9NHJILNnHc1 DVe1zcYA/Ru8YJpjP2iOvhANHfwxgCbxMR6JEoRcohuv+t83W+UE =G5Qi -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 16:39:16 2024 Received: (at 71425) by debbugs.gnu.org; 16 Jun 2024 20:39:16 +0000 Received: from localhost ([127.0.0.1]:56482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIweh-0000dc-Va for submit@debbugs.gnu.org; Sun, 16 Jun 2024 16:39:16 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:35084 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIwef-0000dN-Im; Sun, 16 Jun 2024 16:39:13 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45GKd5CG667242 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 16 Jun 2024 14:39:06 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 45GKd5Vw667241; Sun, 16 Jun 2024 14:39:05 -0600 Date: Sun, 16 Jun 2024 14:39:05 -0600 Message-Id: <202406162039.45GKd5Vw667241@freefriends.org> From: Karl Berry To: collin.funk1@gmail.com Subject: Re: [bug#71425] test: Accommodate C23 compilers. In-Reply-To: <878qzggh1u.fsf@gmail.com> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71425 Cc: 71425@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Collin, In the yacc test I see warnings like this: main.c:4:10: error: implicit declaration of function 'yyparse' [-Wimplicit-function-declaration] 4 | return yyparse (); | ^~~~~~~ and some for yylex which is declared, but with an empty parameter list instead of void. I assume this is because GCC becoming more strict to conform with C23 requirements. I did these tests with GCC 14.1. I have attached a patch fixing these tests on my system. Thanks for the report and patch. I applied it. I fear new incompatibility errors with other systems in other cases, since these yyparse/yylex declarations have been a constant pain ever since they started getting "improved", but I guess we'll find out. --thanks, karl. From unknown Mon Sep 08 01:48:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 15 Jul 2024 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator