From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2B6343858D1E; Mon, 3 Oct 2022 20:49:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B6343858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664830192; bh=rzfrIMOlmsE4zhPqdGBBvtvEjawK0Zt9NHC3mQ2ccEQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mlOn8LKmZyeroJLpBNF+d4Zi969DCCcR5lczsjPw/STQJflYmM33LNLgM56mP2OlA rNfMgGhkuxl/ypeKBHbA1aQaF+sim/zRiwooBNAKYFBzbXt8Jof1mf0oods1neBvE0 TRqt7oVicNYPgeBflDUSn95Tvwc28CvLSpcE2BOY= From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107135] array::at() method should not be in for freestanding C++ Date: Mon, 03 Oct 2022 20:49:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com 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=3D107135 --- Comment #6 from cqwrteur --- Comment on attachment 53663 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53663 Define function for freestanding std::terminate() or std::abort() or __builtin_trap()?? std::terminate() has the issue of set_terminate() which causes trouble. GCC optimizes __builtin_trap() best but it is not standard. What about __builtin_abort()???=