public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112898] New: ICE: in make_ssa_name_fn, at tree-ssanames.cc:354 with -O2 -finstrument-functions-once
@ 2023-12-07  9:09 iamanonymous.cs at gmail dot com
  2023-12-07  9:33 ` [Bug tree-optimization/112898] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: iamanonymous.cs at gmail dot com @ 2023-12-07  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112898
           Summary: ICE: in make_ssa_name_fn, at tree-ssanames.cc:354 with
                    -O2 -finstrument-functions-once
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: iamanonymous.cs at gmail dot com
  Target Milestone: ---

*******************************************************************************
OS and Platform:
$ uname -a:
Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023
x86_64 x86_64 x86_64 GNU/Linux
*******************************************************************************
gcc version:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/root/gcc_set/202311291030/bin/gcc
COLLECT_LTO_WRAPPER=/root/gcc_set/202311291030/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/root/gcc_set/202311291030
--with-gmp=/root/build_essential --with-mpfr=/root/build_essential
--with-mpc=/root/build_essential --enable-languages=c,c++ --disable-multilib
--with-sanitizer=address,undefined,thread,leak
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231129 (experimental) (GCC) 

git version: 99fa0bfd63d97825c4221dcd3123940f1d0e6291
*******************************************************************************
Program:
$ cat mutant.c
void func(int n)
{
        struct T { int x[n]; };
        struct T *t = __builtin_malloc(sizeof *t);
}

*******************************************************************************
Command Lines:
$ gcc -O2 -finstrument-functions-once mutant.c
during GIMPLE pass: fnsplit
In function ‘func.part.0’:
cc1: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:354
0x848332 make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int)
        ../../gcc/gcc/tree-ssanames.cc:354
0x109c94b make_ssa_name(tree_node*, gimple*)
        ../../gcc/gcc/tree-ssanames.h:98
0x109c94b remap_ssa_name
        ../../gcc/gcc/tree-inline.cc:237
0x10a0462 copy_tree_body_r(tree_node**, int*, void*)
        ../../gcc/gcc/tree-inline.cc:1226
0x1343f4c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/gcc/tree.cc:11420
0x13440a4 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/gcc/tree.cc:11654
0x109ad43 remap_type_1
        ../../gcc/gcc/tree-inline.cc:596
0x109b6c3 remap_type(tree_node*, copy_body_data*)
        ../../gcc/gcc/tree-inline.cc:713
0x109b805 remap_decl(tree_node*, copy_body_data*)
        ../../gcc/gcc/tree-inline.cc:377
0x109af15 remap_type_1
        ../../gcc/gcc/tree-inline.cc:562
0x109b6c3 remap_type(tree_node*, copy_body_data*)
        ../../gcc/gcc/tree-inline.cc:713
0x109b805 remap_decl(tree_node*, copy_body_data*)
        ../../gcc/gcc/tree-inline.cc:377
0x109daf4 remap_decls
        ../../gcc/gcc/tree-inline.cc:762
0x109de54 remap_block
        ../../gcc/gcc/tree-inline.cc:820
0x109df25 remap_blocks
        ../../gcc/gcc/tree-inline.cc:839
0x10a5e1b tree_function_versioning(tree_node*, tree_node*,
vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool,
bitmap_head*, basic_block_def*)
        ../../gcc/gcc/tree-inline.cc:6310
0xb27bfe cgraph_node::create_version_clone_with_body(vec<cgraph_edge*, va_heap,
vl_ptr>, vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*,
bitmap_head*, basic_block_def*, char const*, tree_node*, bool)
        ../../gcc/gcc/cgraphclones.cc:1073
0x1ef4f48 split_function
        ../../gcc/gcc/ipa-split.cc:1376
0x1ef8f62 execute_split_functions
        ../../gcc/gcc/ipa-split.cc:1886
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Also ICE on trunk, compiler explorer: https://godbolt.org/z/P4sdPancG

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tree-optimization/112898] ICE: in make_ssa_name_fn, at tree-ssanames.cc:354 with -O2 -finstrument-functions-once
  2023-12-07  9:09 [Bug tree-optimization/112898] New: ICE: in make_ssa_name_fn, at tree-ssanames.cc:354 with -O2 -finstrument-functions-once iamanonymous.cs at gmail dot com
@ 2023-12-07  9:33 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-07  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 112488.

*** This bug has been marked as a duplicate of bug 112488 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-07  9:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07  9:09 [Bug tree-optimization/112898] New: ICE: in make_ssa_name_fn, at tree-ssanames.cc:354 with -O2 -finstrument-functions-once iamanonymous.cs at gmail dot com
2023-12-07  9:33 ` [Bug tree-optimization/112898] " pinskia at gcc dot gnu.org

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).