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

--- Comment #310 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
Hmm, I just realized I performed the tests without enabling LRA by default. I
just noticed that because with LRA enabled, Ada actually fails with:

/<<PKGBUILDDIR>>/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/build/./gcc/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/sys-include   -fchecking=1 -c -g -O2  -fpic
-fno-lto  -W -Wall -gnatpg -nostdinc   a-teioed.adb -o a-teioed.o
/<<PKGBUILDDIR>>/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/build/./gcc/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/sys-include   -fchecking=1 -c -g -O2  -fpic
-fno-lto  -W -Wall -gnatpg -nostdinc   a-textio.adb -o a-textio.o
/<<PKGBUILDDIR>>/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/build/./gcc/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/sys-include   -fchecking=1 -c -g -O2  -fpic
-fno-lto  -W -Wall -gnatpg -nostdinc   a-tgdico.ads -o a-tgdico.o
/<<PKGBUILDDIR>>/build/./gcc/xgcc -B/<<PKGBUILDDIR>>/build/./gcc/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/sh4-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/sh4-linux-gnu/sys-include   -fchecking=1 -c -g -O2  -fpic
-fno-lto  -W -Wall -gnatpg -nostdinc   a-tiboio.adb -o a-tiboio.o
a-ngcefu.adb: In function 'Ada.Numerics.Complex_Elementary_Functions.Arccos':
a-ngcefu.adb:177:8: error: unable to find a register to spill
a-ngcefu.adb:177:8: error: this is the insn:
(insn 105 605 587 10 (parallel [
            (set (reg:SF 499 [orig:184 _24 ] [184])
                (reg:SF 513))
            (use (reg:SI 154 fpscr0))
        ]) "a-ngcefu.adb":164:17 222 {movsf_ie_ra}
     (expr_list:REG_DEAD (reg:SF 513)
        (nil)))
during RTL pass: reload
+===========================GNAT BUG DETECTED==============================+
| 15.0.0 20240922 (experimental) (sh4-linux-gnu) GCC error:                |
| in lra_split_hard_reg_for, at lra-assigns.cc:1868                        |
| Error detected around a-ngcefu.adb:177:8                                 |
| Compiling a-ncelfu.ads                                                   |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

system.ads
a-ncelfu.ads
a-numeri.ads
ada.ads
a-nucoty.ads
a-ngcoty.ads
a-ngcefu.ads
s-exctab.ads
s-stalib.ads
a-unccon.ads
a-ngcefu.adb
a-ngelfu.ads
a-except.ads
s-parame.ads
s-traent.ads
s-fatflt.ads
s-fatgen.ads
a-ngelfu.adb
a-nagefl.ads
a-nallfl.ads
a-naliop.ads
a-nalofl.ads
a-nuaufl.ads
a-nashfl.ads
s-exnflt.ads
s-exponr.ads


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:412
make[9]: *** [../gcc-interface/Makefile:303: a-ncelfu.o] Error 1
make[9]: *** Waiting for unfinished jobs....
a-ngcefu.adb: In function
'Ada.Numerics.Short_Complex_Elementary_Functions.Arccos':
a-ngcefu.adb:177:8: error: unable to find a register to spill
a-ngcefu.adb:177:8: error: this is the insn:
(insn 105 605 587 10 (parallel [
            (set (reg:SF 499 [orig:184 _24 ] [184])
                (reg:SF 513))
            (use (reg:SI 154 fpscr0))
        ]) "a-ngcefu.adb":164:17 222 {movsf_ie_ra}
     (expr_list:REG_DEAD (reg:SF 513)
        (nil)))
during RTL pass: reload
+===========================GNAT BUG DETECTED==============================+
| 15.0.0 20240922 (experimental) (sh4-linux-gnu) GCC error:                |
| in lra_split_hard_reg_for, at lra-assigns.cc:1868                        |
| Error detected around a-ngcefu.adb:177:8                                 |
| Compiling a-nscefu.ads                                                   |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .              |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact command that you entered.                              |
| Also include sources listed below.                                       |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

Will need to do more testing. Sorry for the noise.

Reply via email to