From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2809B3858403; Tue, 19 Oct 2021 09:38:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2809B3858403 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/102831] New: [12 regression] Spurious -Wparentheses etc. warnings Date: Tue, 19 Oct 2021 09:38:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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: Tue, 19 Oct 2021 09:38:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102831 Bug ID: 102831 Summary: [12 regression] Spurious -Wparentheses etc. warnings Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.11 Recently, Solaris bootstrap has repeatedly been broken in very confusing wa= ys: *=20 /vol/gcc/src/hg/master/local/gcc/lra-constraints.c: In function 'bool curr_insn_transform(bool)': /vol/gcc/src/hg/master/local/gcc/lra-constraints.c:4367:21: error: suggest parentheses around assignment used as truth value [-Werror=3Dparentheses] 4367 | (c =3D *constraint) && c !=3D ',' && c !=3D '#'; | ~~~^~~~~~~~~~~~~~ Solaris 11.4/SPARC, once 20211006, again 20211018 *=20 /vol/gcc/src/hg/master/local/libgomp/oacc-init.c:876:1: error: optimization attribute on =E2=80=98acc_on_device=E2=80=99 follows definition but the att= ribute doesn=E2=80=99t match [-Werror=3Dattributes] 876 | { | ^ /vol/gcc/src/hg/master/local/libgomp/oacc-init.c:875:1: note: previous definition of =E2=80=98acc_on_device=E2=80=99 with type =E2=80=98int(acc_de= vice_t)=E2=80=99 875 | acc_on_device (acc_device_t dev) | ^~~~~~~~~~~~~ /vol/gcc/src/hg/master/local/libgomp/oacc-init.c:954:1: internal compiler error: in dwarf2out_register_main_translation_unit, at dwarf2out.c:28329 954 | } | ^ 0x109240f dwarf2out_register_main_translation_unit /vol/gcc/src/hg/master/local/gcc/dwarf2out.c:28328 0xc184b3 pop_scope() /vol/gcc/src/hg/master/local/gcc/c/c-decl.c:1217 0xc19963 pop_file_scope() /vol/gcc/src/hg/master/local/gcc/c/c-decl.c:1465 0xdf4be7 c_common_parse_file() /vol/gcc/src/hg/master/local/gcc/c-family/c-opts.c:1238 Solaris 11.4/SPARC, 32 and 64-bit, 20211003 *=20 In file included from /vol/gcc/src/hg/master/local/gcc/sparseset.c:23: /vol/gcc/src/hg/master/local/gcc/sparseset.c: In function 'void sparseset_ior(sparseset, sparseset, sparseset)': /vol/gcc/src/hg/master/local/gcc/sparseset.h:215:20: error: suggest parenth= eses around assignment used as truth value [-Werror=3Dparentheses] 215 | && (((ITER) =3D sparseset_iter_elm (SPARSESET)) || 1);=20=20= =20=20=20=20=20=20=20=20=20=20 \ | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /vol/gcc/src/hg/master/local/gcc/sparseset.c:214:7: note: in expansion of m= acro 'EXECUTE_IF_SET_IN_SPARSESET' 214 | EXECUTE_IF_SET_IN_SPARSESET (b, e) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Solaris 11.3, first SPARC, 20210924, then x86, 20211001, 20211015, probab= ly more reghunts on sparc and x86 converged, but the results made no sense: sparc as of 20210924 identified commit 4e7a92c0ff3871d955ca8fb133f869b216d7224d Author: Richard Earnshaw Date: Tue Sep 21 11:14:46 2021 +0100 arm: pass architecture extensions to assembler if supported x86 as of 20211001 identified commit a11052d98db2f2a61841f0c5ee84de4ca1b3e296 Author: Jonathan Wakely Date: Tue Sep 28 12:35:29 2021 +0100 libstdc++: Improve std::forward static assert message This seems like some sort of memory corruption to me, but I'm a bit at a lo= ss on how to proceed. When continuing the builds with adding -Wno-error=3Dparentheses to the affe= cted files, the test results showed nothing unexpected.=