public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104407] [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -std=c++17 -O1 Date: Mon, 07 Feb 2022 09:17:48 +0000 [thread overview] Message-ID: <bug-104407-4-FylADiPeIJ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-104407-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104407 --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- DECL_RTL is set in the -g case prematurely during: #0 set_decl_rtl (t=<var_decl 0x7fffea24dcf0 a>, x=0x7fffea3b9bb8) at ../../gcc/emit-rtl.cc:1440 #1 0x0000000001bdc0a5 in make_decl_rtl (decl=<var_decl 0x7fffea24dcf0 a>) at ../../gcc/varasm.cc:1633 #2 0x000000000120cb23 in expand_expr_real_1 (exp=<var_decl 0x7fffea24dcf0 a>, target=0x0, tmode=E_DImode, modifier=EXPAND_INITIALIZER, alt_rtl=0x0, inner_reference_p=false) at ../../gcc/expr.cc:10551 #3 0x0000000001204aaf in expand_expr_real (exp=<var_decl 0x7fffea24dcf0 a>, target=0x0, tmode=E_DImode, modifier=EXPAND_INITIALIZER, alt_rtl=0x0, inner_reference_p=false) at ../../gcc/expr.cc:8736 #4 0x00000000011e20e8 in expand_expr (exp=<var_decl 0x7fffea24dcf0 a>, target=0x0, mode=E_DImode, modifier=EXPAND_INITIALIZER) at ../../gcc/expr.h:301 #5 0x0000000001203a46 in expand_expr_addr_expr_1 (exp=<var_decl 0x7fffea24dcf0 a>, target=0x0, tmode=DImode, modifier=EXPAND_INITIALIZER, as=0 '\000') at ../../gcc/expr.cc:8427 #6 0x0000000001204402 in expand_expr_addr_expr (exp=<addr_expr 0x7fffea3a0e80>, target=0x0, tmode=E_DImode, modifier=EXPAND_INITIALIZER) at ../../gcc/expr.cc:8548 #7 0x0000000001212ed7 in expand_expr_real_1 (exp=<addr_expr 0x7fffea3a0e80>, target=0x0, tmode=E_VOIDmode, modifier=EXPAND_INITIALIZER, alt_rtl=0x0, inner_reference_p=false) at ../../gcc/expr.cc:11767 #8 0x0000000001204aaf in expand_expr_real (exp=<addr_expr 0x7fffea3a0e80>, target=0x0, tmode=E_VOIDmode, modifier=EXPAND_INITIALIZER, alt_rtl=0x0, inner_reference_p=false) at ../../gcc/expr.cc:8736 #9 0x000000000112950c in expand_expr (exp=<addr_expr 0x7fffea3a0e80>, target=0x0, mode=E_VOIDmode, modifier=EXPAND_INITIALIZER) at ../../gcc/expr.h:301 #10 0x00000000011595e0 in rtl_for_decl_init (init=<addr_expr 0x7fffea3a0e80>, type=<reference_type 0x7fffea3a9e70>) at ../../gcc/dwarf2out.cc:20488 #11 0x000000000115ab99 in tree_add_const_value_attribute (die=<dw_die_ref 0x7fffea26a3c0 DW_TAG_variable <parent=0x7fffea26a370 DW_TAG_namespace>>, t=<nop_expr 0x7fffea3a0ea0>) at ../../gcc/dwarf2out.cc:20915 Unfortunately it is deep in the expansion code, so we can't easily make it if (!early_dwarf) don't SET_DECL_RTL, because we don't really know that this is from early dwarf.
next prev parent reply other threads:[~2022-02-07 9:17 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-06 7:32 [Bug debug/104407] New: " asolokha at gmx dot com 2022-02-06 8:51 ` [Bug debug/104407] " pinskia at gcc dot gnu.org 2022-02-06 8:52 ` [Bug target/104407] " pinskia at gcc dot gnu.org 2022-02-07 9:05 ` jakub at gcc dot gnu.org 2022-02-07 9:17 ` jakub at gcc dot gnu.org [this message] 2022-02-07 9:19 ` jakub at gcc dot gnu.org 2022-02-07 9:23 ` jakub at gcc dot gnu.org 2022-02-07 9:31 ` rguenth at gcc dot gnu.org 2022-02-07 9:38 ` jakub at gcc dot gnu.org 2022-02-07 9:42 ` jakub at gcc dot gnu.org 2022-02-07 9:42 ` rguenth at gcc dot gnu.org 2022-02-07 9:44 ` rguenth at gcc dot gnu.org 2022-02-07 9:50 ` [Bug debug/104407] " jakub at gcc dot gnu.org 2022-02-07 10:50 ` rguenth at gcc dot gnu.org 2022-02-07 11:10 ` jakub at gcc dot gnu.org 2022-02-07 11:22 ` rguenther at suse dot de 2022-02-07 11:35 ` jakub at gcc dot gnu.org 2022-02-09 14:19 ` cvs-commit at gcc dot gnu.org 2022-02-09 14:19 ` [Bug debug/104407] [10/11 " jakub at gcc dot gnu.org 2022-06-28 10:48 ` jakub at gcc dot gnu.org 2023-07-07 10:42 ` [Bug debug/104407] [11 " rguenth at gcc dot gnu.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-104407-4-FylADiPeIJ@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).