public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113650] New: __builtin_nonlocal_goto ICEs when passed 0 as arguments
@ 2024-01-29 10:12 gabravier at gmail dot com
  2024-01-29 10:29 ` [Bug c/113650] " rguenth at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: gabravier at gmail dot com @ 2024-01-29 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113650
           Summary: __builtin_nonlocal_goto ICEs when passed 0 as
                    arguments
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

void f() {
        __builtin_nonlocal_goto(0, 0);
}

This crashes GCC with the following error:

during RTL pass: expand
<source>: In function 'f':
<source>:2:9: internal compiler error: in int_mode_for_mode, at
stor-layout.cc:407
    2 |         __builtin_nonlocal_goto(0, 0);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x23382dc internal_error(char const*, ...)
        ???:0
0x96bd77 fancy_abort(char const*, int, char const*)
        ???:0
0xc569ae emit_move_insn_1(rtx_def*, rtx_def*)
        ???:0
0xc56d40 emit_move_insn(rtx_def*, rtx_def*)
        ???:0
0xc2c376 copy_to_reg(rtx_def*)
        ???:0
0xaf9911 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        ???:0
0xc53d5c expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???: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] 2+ messages in thread

* [Bug c/113650] __builtin_nonlocal_goto ICEs when passed 0 as arguments
  2024-01-29 10:12 [Bug c/113650] New: __builtin_nonlocal_goto ICEs when passed 0 as arguments gabravier at gmail dot com
@ 2024-01-29 10:29 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-29 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I don't think these are supposed to be used by the user ...

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

end of thread, other threads:[~2024-01-29 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-29 10:12 [Bug c/113650] New: __builtin_nonlocal_goto ICEs when passed 0 as arguments gabravier at gmail dot com
2024-01-29 10:29 ` [Bug c/113650] " rguenth 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).