public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112488] New: GCC: 14: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:354
@ 2023-11-12  9:05 141242068 at smail dot nju.edu.cn
  2023-11-12 19:22 ` [Bug ipa/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining pinskia at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-11-12  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112488
           Summary: GCC: 14: internal compiler error: in make_ssa_name_fn,
                    at tree-ssanames.cc:354
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

Compiler explorer: https://gcc.godbolt.org/z/h9aen36q7

When compile this program with `gcc-14 -O1`, gcc ICEs:
```
extern void abort(void);

int test(int *n) {
  struct T { char a[*n], b[*n]; };
  return sizeof(struct T) - sizeof(struct T);
}

void f1(int *p) {
  if (test(p)) abort();
}
```

The crash output:
```
during IPA pass: inline
In function 'test':
cc1: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:354
0x238b15e internal_error(char const*, ...)
        ???:0
0xa11270 fancy_abort(char const*, int, char const*)
        ???:0
0x11bd6ff copy_tree_body_r(tree_node**, int*, void*)
        ???:0
0x147a55c 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*> >*))
        ???:0
0x147a8c4 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*> >*))
        ???:0
0x147a8c4 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*> >*))
        ???:0
0x11b8ac9 remap_type(tree_node*, copy_body_data*)
        ???:0
0x11b8bdf remap_decl(tree_node*, copy_body_data*)
        ???:0
0x11c5b59 tree_function_versioning(tree_node*, tree_node*,
vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, bool,
bitmap_head*, basic_block_def*)
        ???:0
0xe698db inline_transform(cgraph_node*)
        ???:0
0xfec7fb execute_all_ipa_transforms(bool)
        ???:0
0xbfe2d9 cgraph_node::expand()
        ???:0
0xc027bb symbol_table::finalize_compilation_unit()
        ???:0
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.
```

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

end of thread, other threads:[~2023-12-13 17:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-12  9:05 [Bug c/112488] New: GCC: 14: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:354 141242068 at smail dot nju.edu.cn
2023-11-12 19:22 ` [Bug ipa/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining pinskia at gcc dot gnu.org
2023-11-12 19:25 ` pinskia at gcc dot gnu.org
2023-11-13  8:59 ` [Bug c/112488] " rguenth at gcc dot gnu.org
2023-11-13 18:29 ` pinskia at gcc dot gnu.org
2023-11-13 18:33 ` [Bug c/112488] [14 Regression] ICE in make_ssa_name_fn with VLA inside type and inlining since r14-1142 jakub at gcc dot gnu.org
2023-11-13 18:35 ` uecker at gcc dot gnu.org
2023-11-13 20:19 ` uecker at gcc dot gnu.org
2023-11-13 20:23 ` uecker at gcc dot gnu.org
2023-12-07  9:33 ` pinskia at gcc dot gnu.org
2023-12-07 22:19 ` muecker at gwdg dot de
2023-12-08 17:19 ` muecker at gwdg dot de
2023-12-11 22:20 ` cvs-commit at gcc dot gnu.org
2023-12-13 17:49 ` uecker 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).