public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/108773] [13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph since r13-4563-g1e1847612d7f169f
Date: Mon, 13 Feb 2023 13:18:29 +0000	[thread overview]
Message-ID: <bug-108773-4-Qi7zNJq9XQ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108773-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108773

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-reduction

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I'm not sure I'll be able to reduce it, btw. it crashes here:

#0  fancy_abort (file=file@entry=0x22c7288
"/home/marxin/Programming/gcc/gcc/gimplify.cc", line=line@entry=3058,
function=function@entry=0x22c6bab "gimplify_var_or_parm_decl") at
/home/marxin/Programming/gcc/gcc/diagnostic.cc:2219
#1  0x00000000007c1226 in gimplify_var_or_parm_decl (expr_p=0x7fffcfd6e338) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:3058
#2  0x0000000000ebcb6b in gimplify_expr (expr_p=0x7fffcfd6e338,
pre_p=0x7fffffffbbb0, post_p=0x7fffffffb0f8, gimple_test_f=0xeab4c0
<is_gimple_addressable(tree)>, fallback=3) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:16822
#3  0x0000000000ec36d6 in gimplify_addr_expr (expr_p=0x7fffba8c6940,
pre_p=0x7fffffffbbb0, post_p=0x7fffffffb0f8) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:6561
#4  0x0000000000ebce24 in gimplify_expr (expr_p=0x7fffba8c6940,
pre_p=0x7fffffffbbb0, post_p=0x7fffffffb0f8, gimple_test_f=0xe6fb70
<is_gimple_val(tree_node*)>, fallback=1) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:16408
#5  0x0000000000ec8822 in gimplify_expr (post_p=0x0, allow_ssa=true,
fallback=<optimized out>, gimple_test_f=<optimized out>, pre_p=0x7fffffffbbb0,
expr_p=0x7fffba8c6940) at /home/marxin/Programming/gcc/gcc/gimplify.cc:17425
#6  gimplify_arg (arg_p=0x7fffba8c6940, pre_p=0x7fffffffbbb0,
call_location=1422861833, allow_ssa=<optimized out>) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:3504
#7  0x0000000000ecbf1c in gimplify_call_expr (expr_p=0x7fffcb66aad8,
pre_p=0x7fffffffbbb0, want_value=<optimized out>) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:3789
#8  0x0000000000ebd0ec in gimplify_expr (expr_p=0x7fffcb66aad8,
pre_p=0x7fffffffbbb0, post_p=0x7fffffffb308, gimple_test_f=0xeafb80
<is_gimple_stmt(tree)>, fallback=0) at
/home/marxin/Programming/gcc/gcc/gimplify.cc:16333
#9  0x0000000000ebf4e7 in gimplify_stmt (stmt_p=<optimized out>,
seq_p=0x7fffffffbbb0) at /home/marxin/Programming/gcc/gcc/gimplify.cc:7219

...
(gdb) p debug_tree(decl)
 <var_decl 0x7fffe72e9480 D.1471832
    type <record_type 0x7ffff6fe43f0 allocator sizes-gimplified addressable
needs-constructing cxx-odr-p type_1 type_4 type_5 type_6 BLK
        size <integer_cst 0x7ffff76420c0 constant 8>
        unit-size <integer_cst 0x7ffff76420d8 constant 1>
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff6fe43f0
        fields <field_decl 0x7ffff6da0390 D.19596 type <record_type
0x7ffff6d96930 __new_allocator>
            ignored decl_6 BLK
/home/marxin/Programming/testcases/ceph.ii:10806:11
            size <integer_cst 0x7ffff7642000 constant 0> unit-size <integer_cst
0x7ffff7642000 0>
            align:8 warn_if_not_align:0 offset_align 8 decl_not_flexarray: 0
offset <integer_cst 0x7ffff7642000 0>
            bit-offset <integer_cst 0x7ffff7642048 constant 0> context
<record_type 0x7ffff6fe43f0 allocator> chain <function_decl 0x7ffff6d9ce00 __ct
>> context <namespace_decl 0x7ffff763c098 std>
        full-name "class std::allocator<char>"
        needs-constructor needs-destructor X() X(constX&) this=(X&) n_parents=1
use_template=3 interface-only
        pointer_to_this <pointer_type 0x7ffff6d9d540> reference_to_this
<reference_type 0x7ffff6d9da80> chain <type_decl 0x7ffff6fe3980 allocator>>
    addressable used ignored read BLK
/home/marxin/Programming/testcases/ceph.ii:322049:24 size <integer_cst
0x7ffff76420c0 8> unit-size <integer_cst 0x7ffff76420d8 1>
    align:8 warn_if_not_align:0 context <function_decl 0x7ffff00ec500
hook_to_admin_command>>

  parent reply	other threads:[~2023-02-13 13:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-13 12:54 [Bug c++/108773] New: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph kkeithle at redhat dot com
2023-02-13 13:04 ` [Bug c++/108773] " kkeithle at redhat dot com
2023-02-13 13:05 ` marxin at gcc dot gnu.org
2023-02-13 13:16 ` [Bug c++/108773] [13 Regression] ICE in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph since r13-4563-g1e1847612d7f169f marxin at gcc dot gnu.org
2023-02-13 13:18 ` marxin at gcc dot gnu.org [this message]
2023-02-13 13:27 ` jakub at gcc dot gnu.org
2023-02-13 14:27 ` jakub at gcc dot gnu.org
2023-02-13 14:39 ` jakub at gcc dot gnu.org
2023-02-13 15:54 ` jakub at gcc dot gnu.org
2023-02-13 16:03 ` marxin at gcc dot gnu.org
2023-02-13 16:11 ` jakub at gcc dot gnu.org
2023-02-13 17:06 ` jakub at gcc dot gnu.org
2023-02-13 17:07 ` jakub at gcc dot gnu.org
2023-02-27 10:33 ` rguenth at gcc dot gnu.org
2023-03-07  3:01 ` jason at gcc dot gnu.org
2023-03-08  3:35 ` jason at gcc dot gnu.org
2023-03-09 21:26 ` cvs-commit at gcc dot gnu.org
2023-03-09 21:30 ` jason at gcc dot gnu.org
2023-03-13 18:07 ` kkeithle at redhat dot com

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-108773-4-Qi7zNJq9XQ@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: link
Be 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).