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

            Bug ID: 123747
           Summary: [ARM] ice in make_ssa_name_fn, at tree-ssanames.cc:355
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 63446
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63446&action=edit
f90 source code

For the attached fortran 90 code, from the Fujitsu test suite
at 

https://github.com/fujitsu/compiler-test-suite

recent gcc trunk on Raspberry PI 5 does this:

dcb@raspberrypi:~/fujitsu $ ~/gcc/results/bin/gcc -c -w -O1
~/gcc/results/bin/gcc -c -w -O1 ./trunk/Fortran/0376/0376_0105.f90
dcb@raspberrypi:~/fujitsu $ ~/gcc/results/bin/gcc -c -w -O2
./trunk/Fortran/0376/0376_0105.f90
f951: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:355
0x1cc2e1f internal_error(char const*, ...)
        ../../trunk/gcc/diagnostic-global-context.cc:787
0x2bda13 fancy_abort(char const*, int, char const*)
        ../../trunk/gcc/diagnostics/context.cc:1812
0xe90ec7 make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int)
        ../../trunk/gcc/tree-ssanames.cc:355
0xc3f9d7 make_ssa_name(tree_node*, gimple*)
        ../../trunk/gcc/tree-ssanames.h:100

Compiler is 

dcb@raspberrypi:~/fujitsu $ ~/gcc/results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/dcb/gcc/results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb/gcc/results.20260121.ubsan/libexec/gcc/arm-linux-gnueabihf/16.0.1/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../trunk/configure
--prefix=/home/dcb/gcc/results.20260121.ubsan --disable-bootstrap --disable-doc
--disable-multilib --with-build-config=bootstrap-ubsan
--with-pkgversion=dcffca312f84b8ab --enable-checking=yes
--enable-languages=c,c++,fortran --with-cpu=cortex-a76 --with-fpu=neon-fp-armv8
--with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 16.0.1 20260121 (experimental) (dcffca312f84b8ab) 
dcb@raspberrypi:~/fujitsu $

Reply via email to