From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E505F385040C; Fri, 30 Apr 2021 12:07:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E505F385040C From: "nsz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100354] New: [9 regression] aarch64: non-deligitimized UNSPEC UNSPEC_TLS (76) found in variable location Date: Fri, 30 Apr 2021 12:07:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2021 12:07:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100354 Bug ID: 100354 Summary: [9 regression] aarch64: non-deligitimized UNSPEC UNSPEC_TLS (76) found in variable location Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: nsz at gcc dot gnu.org Target Milestone: --- i see this note/warning a lot during an aarch64 glibc build since gcc-9, it seems to require -O -g, and seems to be harmless wrt code generation, just annoying. $ cat bug.c struct s { void *p; int n; }; void foo(struct s *x) { void *p =3D __builtin_thread_pointer(); if (x->p !=3D p) x->p =3D p; x->n++; } $ aarch64-none-linux-gnu-gcc -S -O1 -g bug.c bug.c: In function =E2=80=98foo=E2=80=99: bug.c:6:6: note: non-delegitimized UNSPEC UNSPEC_TLS (76) found in variable location 6 | void foo(struct s *x) | ^~~ may be related to bug 89006=