public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ibuclaw at gdcproject dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96347] note: non-delegitimized UNSPEC UNSPEC_TP (19) found in variable location Date: Tue, 28 Jul 2020 13:06:49 +0000 [thread overview] Message-ID: <bug-96347-4-RiN6hGAw5R@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96347-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96347 --- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> --- Possibly some useful information for context. At expand_expr_real_1 (expr.c:10567) there is the following expression. --- MEM <int *> [(struct Darray *)&testYearsBC + 8B] --- Lowered to RTL as --- (plus:DI (unspec:DI [ (const_int 0 [0]) ] UNSPEC_TP) (const:DI (plus:DI (unspec:DI [ (symbol_ref:DI ("testYearsBC") [flags 0x2a] <var_decl 0x7ffff7fa2bd0 testYearsBC>) ] UNSPEC_NTPOFF) (const_int 8 [0x8])))) --- At break_out_memory_refs (explow.c:277) the rhs of the plus expression is forced into a register. --- (insn 18 17 0 (set (reg:DI 89) (const:DI (plus:DI (unspec:DI [ (symbol_ref:DI ("testYearsBC") [flags 0x2a] <var_decl 0x7ffff7fa2bd0 testYearsBC>) ] UNSPEC_NTPOFF) (const_int 8 [0x8])))) -1 (nil)) (mem/f/c:DI (plus:DI (unspec:DI [ (const_int 0 [0]) ] UNSPEC_TP) (reg:DI 89)) [1 MEM <int *> [(struct Darray *)&testYearsBC + 8B]+0 S8 A64]) --- And it is the second insn that reaches const_ok_for_output_1() at mem_loc_descriptor (dwarf2out.c:15748) --- (note 133 132 163 3 (var_location year (mem:SI (mem/f/c:DI (plus:DI (unspec:DI [ (const_int 0 [0]) ] UNSPEC_TP) (reg/f:DI 6 bp [90])) [1 MEM <int *> [(struct Darray *)&testYearsBC + 8B]+0 S8 A64]) [6 *rs$pt r_5+0 S4 A32])) NOTE_INSN_VAR_LOCATION) ---
next prev parent reply other threads:[~2020-07-28 13:06 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-27 22:19 [Bug target/96347] New: " ibuclaw at gdcproject dot org 2020-07-27 22:22 ` [Bug target/96347] " ibuclaw at gdcproject dot org 2020-07-28 13:06 ` ibuclaw at gdcproject dot org [this message] 2020-07-28 14:55 ` ibuclaw at gdcproject dot org 2020-07-29 18:12 ` ibuclaw at gdcproject dot org 2020-08-06 12:02 ` ibuclaw at gdcproject dot org 2023-10-18 18:59 ` ibuclaw at gdcproject dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-96347-4-RiN6hGAw5R@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).