From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8F19F385734B; Fri, 23 Sep 2022 13:28:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F19F385734B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663939691; bh=viRHBrP8rUk7vROPrhf65rCCdzErhDjrujyn+RXbh9w=; h=From:To:Subject:Date:From; b=nzyw+OMBQVbRnLKuysuX7HaBT+lbHeVSmLSIhtVYdIwXR9sJTaSK0IgDod79bYevW OrCEyXjW7LFXlu+4O0kblrpgJm8sxK79D2T/3u/2/4NORz73ab5wfMf1Wl2kueYn2M FojjzNFPalBoSTPUTlIMujDXhFs5tm4YAhrOtpPY= From: "dje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107018] New: [13 Regression] libgcc unwind-dw2-fde references undeclared variable Date: Fri, 23 Sep 2022 13:28:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107018 Bug ID: 107018 Summary: [13 Regression] libgcc unwind-dw2-fde references undeclared variable Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dje at gcc dot gnu.org Target Milestone: --- in_shutdown is declared within #ifdef ATOMIC_FDE_FAST_PATH but used outside= the scope of that macro. This causes an undeclared variable that causes libgcc build to fail and breaks bootstrap. #ifdef ATOMIC_FDE_FAST_PATH #include "unwind-dw2-btree.h" static struct btree registered_frames; static bool in_shutdown; static void release_registered_frames (void) __attribute__ ((destructor (110))); static void release_registered_frames (void) { /* Release the b-tree and all frames. Frame releases that happen later are * silently ignored */ btree_destroy (®istered_frames); in_shutdown =3D true; } static void get_pc_range (const struct object *ob, uintptr_type *range); static void init_object (struct object *ob); #else=