From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21C55382DE00; Wed, 26 Oct 2022 16:48:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21C55382DE00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666802892; bh=ySkkhg0t9Alv/EeCZ5ggYyrB/sT+NgV5C3D+cozTdak=; h=From:To:Subject:Date:From; b=szN3bPcIr3J4EF5rTQpmYMiAaerKyqUq7FcFPgRmcBgEEa1NzyfceLtLaBCcqeL/W MKTMmCZCi4qSLX/8vCwRHjuBN25VwMpYHzf6YW0o4fQNLWDGC02kucQw6wCO5mjh2+ fJ1KBwmq2C0Ar2cZg/L5f8Icj3XMsBT0+SBnOmsc= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107419] New: attributes are ignored when selecting TLS model Date: Wed, 26 Oct 2022 16:48:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov 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 keywords bug_severity priority component assigned_to reporter cc blocked 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=3D107419 Bug ID: 107419 Summary: attributes are ignored when selecting TLS model Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: amonakov at gcc dot gnu.org CC: amonakov at gcc dot gnu.org, asolokha at gmx dot com, bergner at gcc dot gnu.org, iains at gcc dot gnu.org, law at gcc dot gnu.org, marxin at gcc dot gnu.org, segher at gcc dot gnu.org, seurer at gcc dot gnu.org, unassigned at gcc dot gnu.org Blocks: 107353 Target Milestone: --- +++ This bug was initially created as a clone of Bug #107353 +++ __attribute__((common)) __thread int i; int *f() { return &i; } C frontend invokes decl_default_tls_model before processing attributes, assigning local-exec model as if the 'common' attribute was not present. Recomputing it later would select initial-exec model, breaking internal verification that was weakened to solve PR 107353. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107353 [Bug 107353] [13 regression] Numerous ICEs after r13-3416-g1d561e1851c466=