From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9F02384AB65; Thu, 16 May 2024 20:41:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9F02384AB65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715892070; bh=eWhHAcmj60oamHLThs1hFmLgiOjYQ3Vv6kQ0/T8UrBs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o4d2VX1JxURdynzToSjaXdYjS2JBpfXkGks+cMAKg/4khdzZ3nZokPBFBZeImgdc4 hpDAlUOD2+LvIgdGgDHAQOJzP2WpS0q2PhqaHsvpfS3FHTNVx2JBs01qOPe5deM1gr +///+UjKhKShJ5aCZtJlnrJQSEcm/CLj9+0J6MQY= From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105863] RFE: C23 #embed Date: Thu, 16 May 2024 20:41:09 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jsm28 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: --- 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=3D105863 --- Comment #9 from Joseph S. Myers --- The most straightforward and most important case to optimize is the one whe= re the #embed expansion lies entirely inside a single character array initiali= zer (possibly with some integer constants before or after it in the initializer= - whether coming from the prefix and suffix parameters to #embed or otherwise= ) - in which case the initializer can be converted internally to a STRING_CST. Cases that aren't within a character array initializer like that are harder= to optimize (might require additional internal representation beyond the front end), and probably also less important to optimize initially.=