From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 972D93858D35; Tue, 26 Sep 2023 09:31:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 972D93858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695720671; bh=jeTjYgLe/SN+lQ9aT6sT1dq8aRvqjy6SyEY9D+RHlK0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M7w501kFa31mfWWSuDmApncllbsvZW6o9DyQfMAfnsk5CvEkXV52Vv6SwoSyhanlB QTdHDGY8F+rGt8Pj4sWWc9vkY5xz+YWT1nXm9A2+/9g0v7KzfibwgHkBN4daMhaiR4 w93QF/DaGRQAffgavvqv8HeeZzMndaoxQBQ/1gbo= From: "malat at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111591] ppc64be: miscompilation with -mstrict-align / -O3 Date: Tue, 26 Sep 2023 09:31:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: malat at debian dot 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: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111591 --- Comment #11 from Mathieu Malaterre --- (In reply to Kewen Lin from comment #6) > Confirmed, thanks for reporting. >=20 > I noticed that the reduced test case in #c1 can make gcc-13 complain with: >=20 > test.cc:67:16: error: expected type-specifier before =E2=80=98__remove_re= ference=E2=80=99 > 67 | using type =3D __remove_reference(_Tp); > | ^~~~~~~~~~~~~~~~~~ >=20 > Also gcc-12, gcc-11 build. >=20 > Is it expected? If yes, could we have a reduced test case to survive for > gcc-12 and gcc-11 compilation? I think it would help bisection. `__remove_reference` must be something new in g++-13. Anyway I started a cvise regression using g++-11 against g++-12. You can tr= y on your side: g++-11 -std=3Dc++11 -o works -maltivec -mcpu=3Dpower8 -mstrict-align -g -O3 widen_mul_test.cc foo.cc -Wall -Wextra -Werror -Wfatal-errors vs g++-12 -std=3Dc++11 -o fails -maltivec -mcpu=3Dpower8 -mstrict-align -g -O3 widen_mul_test.cc foo.cc -Wall -Wextra -Werror -Wfatal-errors For some reason if I copy/paste foo.cc into the main cc file (gnu::noipa) I= can not reproduce the issue. So you'll have to download both *.cc files. Thanks !=