From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 347A93858C5E; Wed, 17 May 2023 18:38:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 347A93858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684348702; bh=vNmO1wBviOL3gE9lc578PUJsni1ImFvnjSmr5QUM7HA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qzQtefrdco1UX4DojV+eequHkBwPFP5PZpBKI6w3hegFuep3pZNFLbFWYhaD7wFV4 UHFZ18A9EuLYeWzMy36LRJdKPRxwcmsQOyxeB5YkGWt9YRrGLFC7dYvkXjgUhl5gbc kF+WK4dWE5309OotqV212ck7DfClMq6c1fQ30/6Y= From: "thiago at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi8xMDY0MDldIEdDQyB3aXRo?= =?UTF-8?B?IExUTzogV2FybmluZzogYXJndW1lbnQgMSB2YWx1ZSDigJgxOC4uLjYxNQ==?= =?UTF-8?B?4oCZIChTSVpFX01BWCkgZXhjZWVkcyBtYXhpbXVtIG9iamVjdCBzaXplIHdp?= =?UTF-8?B?dGggbmV3?= Date: Wed, 17 May 2023 18:38:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: diagnostic, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: thiago at kde 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=3D106409 --- Comment #6 from Thiago Macieira --- Suggestion: add a function to libgcc to be called instead of __cxa_throw_bad_array_new_length when exceptions are disabled. That function can be a mere two instructions, but it provides two advantages: * no need to stream something into LTO * allows post-compilation tools to know what's happened (Valgrind, debugger= s, etc.) I don't know if this is an acceptable solution, but I thought I'd make the suggestion.=