public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189
@ 2022-07-11 18:54 gscfq@t-online.de
  2022-07-11 19:56 ` [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649 marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2022-07-11 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106257
           Summary: [13 Regression] ICE in expand_builtin_unreachable, at
                    builtins.cc:5189
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20220619 and 20220626,
with file gcc.c-torture/compile/pr84136.c :


$ gcc-13-20220710 -c pr84136.c -O2 -fno-early-inlining -fsanitize=unreachable
during RTL pass: expand
pr84136.c: In function 'main':
pr84136.c:12:5: internal compiler error: in expand_builtin_unreachable, at
builtins.cc:5189
   12 | int main() {
      |     ^~~~
0x873309 expand_builtin_unreachable
        ../../gcc/builtins.cc:5189
0x873309 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ../../gcc/builtins.cc:7540
0x9eddfe expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.cc:11689
0x89e2df expand_expr
        ../../gcc/expr.h:310
0x89e2df expand_call_stmt
        ../../gcc/cfgexpand.cc:2831
0x89e2df expand_gimple_stmt_1
        ../../gcc/cfgexpand.cc:3880
0x89e2df expand_gimple_stmt
        ../../gcc/cfgexpand.cc:4044
0x8a520f expand_gimple_basic_block
        ../../gcc/cfgexpand.cc:6096
0x8a7866 execute
        ../../gcc/cfgexpand.cc:6822

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
@ 2022-07-11 19:56 ` marxin at gcc dot gnu.org
  2022-07-11 20:13 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-11 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-07-11
            Summary|[13 Regression] ICE in      |[13 Regression] ICE in
                   |expand_builtin_unreachable, |expand_builtin_unreachable,
                   |at builtins.cc:5189         |at builtins.cc:5189 since
                   |                            |r13-1204-gd68d366425369649
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Also started with r13-1204-gd68d366425369649.

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
  2022-07-11 19:56 ` [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649 marxin at gcc dot gnu.org
@ 2022-07-11 20:13 ` pinskia at gcc dot gnu.org
  2022-07-12  6:34 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-07-11 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
  2022-07-11 19:56 ` [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649 marxin at gcc dot gnu.org
  2022-07-11 20:13 ` pinskia at gcc dot gnu.org
@ 2022-07-12  6:34 ` rguenth at gcc dot gnu.org
  2022-12-19 23:01 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-07-12  6:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-07-12  6:34 ` rguenth at gcc dot gnu.org
@ 2022-12-19 23:01 ` pinskia at gcc dot gnu.org
  2022-12-22 11:55 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-19 23:01 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Testcase just for easier access:
```
void* a;

void foo() {
    if ((a = &&l))
        return;

    l:;
}

int main() {
    foo();
    goto *a;

    return 0;
}
```
I can no longer reproduce this ICE.

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-12-19 23:01 ` pinskia at gcc dot gnu.org
@ 2022-12-22 11:55 ` marxin at gcc dot gnu.org
  2022-12-22 15:47 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-22 11:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Testcase just for easier access:
> ```
> void* a;
> 
> void foo() {
>     if ((a = &&l))
>         return;
> 
>     l:;
> }
> 
> int main() {
>     foo();
>     goto *a;
> 
>     return 0;
> }
> ```
> I can no longer reproduce this ICE.

This got fixed since r8-6656-g6d3aa24cd6535dcf.

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-12-22 11:55 ` marxin at gcc dot gnu.org
@ 2022-12-22 15:47 ` pinskia at gcc dot gnu.org
  2022-12-22 15:48 ` pinskia at gcc dot gnu.org
  2023-01-03 11:23 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-22 15:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> This got fixed since r8-6656-g6d3aa24cd6535dcf.

This does not make sense since it only started at r13-1204-gd68d366425369649
...

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2022-12-22 15:47 ` pinskia at gcc dot gnu.org
@ 2022-12-22 15:48 ` pinskia at gcc dot gnu.org
  2023-01-03 11:23 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-22 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Martin Liška from comment #3)
> > This got fixed since r8-6656-g6d3aa24cd6535dcf.
> 
> This does not make sense since it only started at r13-1204-gd68d366425369649
> ...

Oh that is when the original ICE was fixed not the current one.

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

* [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649
  2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2022-12-22 15:48 ` pinskia at gcc dot gnu.org
@ 2023-01-03 11:23 ` jakub at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-03 11:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It got actually fixed with r13-2213-g530dc5aaaeb67c223fd0e3986d635408dcea4343

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

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

end of thread, other threads:[~2023-01-03 11:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 18:54 [Bug c/106257] New: [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 gscfq@t-online.de
2022-07-11 19:56 ` [Bug middle-end/106257] [13 Regression] ICE in expand_builtin_unreachable, at builtins.cc:5189 since r13-1204-gd68d366425369649 marxin at gcc dot gnu.org
2022-07-11 20:13 ` pinskia at gcc dot gnu.org
2022-07-12  6:34 ` rguenth at gcc dot gnu.org
2022-12-19 23:01 ` pinskia at gcc dot gnu.org
2022-12-22 11:55 ` marxin at gcc dot gnu.org
2022-12-22 15:47 ` pinskia at gcc dot gnu.org
2022-12-22 15:48 ` pinskia at gcc dot gnu.org
2023-01-03 11:23 ` jakub 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).