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

            Bug ID: 109765
           Summary: [14 regression] ICE in real_to_decimal_for_mode
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Happens for all sorts of input, noticed initially with Meson's test program:
```
compiler stderr:

Running command: aarch64-unknown-linux-gnu-gcc -E -dM -

../wayland-1.22.0/meson.build:1:0: ERROR: Unable to detect GNU compiler type:
Compiler stdout:

-----
Compiler stderr:
<built-in>: internal compiler error: in real_to_decimal_for_mode, at
real.cc:1899
0xe036af real_to_decimal_for_mode(char*, real_value const*, unsigned long,
unsigned long, int, machine_mode)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/real.cc:1899
0x80cdeb builtin_define_with_hex_fp_value
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:1877
0x80e8bf builtin_define_float_constants
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:277
0x810103 c_cpp_builtins(cpp_reader*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:1245
0x82f853 c_finish_options
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-opts.cc:1489
0x831fb3 c_common_init()
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-opts.cc:1226
0x708243 lang_dependent_init
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:1820
0x708243 do_compile
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:2115
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.

-----
```

```
# echo hi  | aarch64-unknown-linux-gnu-gcc -E -dM -
<built-in>: internal compiler error: in real_to_decimal_for_mode, at
real.cc:1899

0xe036af real_to_decimal_for_mode(char*, real_value const*, unsigned long,
unsigned long, int, machine_mode)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/real.cc:1899
0x80cdeb builtin_define_with_hex_fp_value
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:1877
0x80e8bf builtin_define_float_constants
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:277
0x810103 c_cpp_builtins(cpp_reader*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-cppbuiltin.cc:1245
0x82f853 c_finish_options
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-opts.cc:1489
0x831fb3 c_common_init()
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/c-family/c-opts.cc:1226
0x708243 lang_dependent_init
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:1820
0x708243 do_compile
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/toplev.cc:2115
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
gcc (Gentoo 14.0.0.9999 p, commit ab60d0a28615153ee13cbf1401bdcdf2382ae0c4)
14.0.0 20230507 (experimental) 681ba2f7681f295a102cd63ffd5ce2b86a5f706e
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

Reply via email to