From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C4CBF3858C2D; Fri, 25 Aug 2023 12:28:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4CBF3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692966537; bh=yIHX8v8+bvHxYlK9wSxRlyaAtJx9BsEwd+GBbQzaAGg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V6b7MR3CZ5NcwfuQXjtbMCh0P+p249LwUUXxGbGeEOgEHOE2nw6bfUDlooocFCESS Y59LtzBp1PBz0xBL/Uu0xPUeJ/xj4bAtD93FKI60i0RDiKsCNZcjYzFchQza6tI5Ty 8cQV/5qKnOmwX8SI0pyR2bsh5opu1BWUNIWTjZrs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111151] [12/13/14 Regression] Wrong code at -O0 on x86_64-pc-linux-gnu Date: Fri, 25 Aug 2023 12:28:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D111151 --- Comment #4 from Richard Biener --- Created attachment 55794 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55794&action=3Dedit fold "dumping" This adds DUMP_FOLD, but I get /home/rguenther/src/trunk/gcc/fold-const.cc:6808:22: warning: ISO C++ forbi= ds braced-groups within expressions [-Wpedantic] #define DUMP_FOLD(X) ({ auto x =3D (X); if (x && dump_file && (dump_flags & TDF_FOLDING)) fprintf (dump_file, "Applying fold-const.c:%d\n", __LINE__); = x; }) ^ /home/rguenther/src/trunk/gcc/fold-const.cc:7193:15: note: in expansion of macro 'DUMP_FOLD' return DUMP_FOLD (fold_build2 (code, ctype, fold_convert (ctype, op= 0), ^~~~~~~~~ with #define DUMP_FOLD(X) ({ auto x =3D (X); if (x && dump_file && (dump_flags & TDF_FOLDING)) fprintf (dump_file, "Applying fold-const.c:%d\n", __LINE__); = x; }) so maybe need to use __extension__ and #if __GNUC for this?=