From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 143CC3858D33; Wed, 1 Feb 2023 18:19:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 143CC3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675275551; bh=A2GW5qaMUuWoqdABPE/FwqtUHqcZnR1oi5+0Vdiys6c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fy4CKOqhxfgxKD9dm1hSXoC3QHFiRi2uWxQaQNykkxTfZBnD80yjvwBrNTiStYvup Ahy32MgnekOJsL7nzHZCmCBTkECzC7Y6BGo82JCjftPmbGGubNkIoXi8Nq89nfarWr 9hut7wSoLHhH5jvIL4g4QEMEeiACeMI4UyRTu5m0= From: "marat at slonopotamus dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[] Date: Wed, 01 Feb 2023 18:19:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: marat at slonopotamus dot 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: 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=3D108626 --- Comment #2 from Marat Radchenko --- Thanks for the pointer to -fmerge-all-constants, that helped me to google o= ut why such transformation is invalid: https://stackoverflow.com/a/70328102 Should I close this issue as INVALID (and probably open one against clang)?=