public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99723] New: arm: ICE in build_function_type during selftests
@ 2021-03-23 10:09 acoplan at gcc dot gnu.org
  2021-03-23 10:39 ` [Bug target/99723] " acoplan at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-03-23 10:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99723
           Summary: arm: ICE in build_function_type during selftests
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

If I configure a cross arm GCC with:

--enable-languages=c,c++ --disable-bootstrap --target=arm-linux-gnueabihf
--with-arch=armv8-a --with-float=hard

and run `make all-gcc`, the selftests fail with:

$ gcc/xgcc -B gcc -xc /dev/null -S -o /dev/null
-fself-test=/home/alecop01/toolchain/src/gcc/gcc/testsuite/selftests
cc1: error: ‘-mfloat-abi=hard’: selected processor lacks an FPU
cc1: internal compiler error: in build_function_type, at tree.c:8432
0x107af5d build_function_type(tree_node*, tree_node*)
        /home/alecop01/toolchain/src/gcc/gcc/tree.c:8432
0x107b21d build_function_type_list(tree_node*, ...)
        /home/alecop01/toolchain/src/gcc/gcc/tree.c:8511
0x88eed8 test_capture_of_dump_calls
        /home/alecop01/toolchain/src/gcc/gcc/dumpfile.c:2283
0x19526e6 selftest::for_each_line_table_case(void (*)(selftest::line_table_case
const&))
        /home/alecop01/toolchain/src/gcc/gcc/input.c:3573
0x89297d selftest::dumpfile_c_tests()
        /home/alecop01/toolchain/src/gcc/gcc/dumpfile.c:2772
0x1881c92 selftest::run_tests()
        /home/alecop01/toolchain/src/gcc/gcc/selftest-run-tests.c:63
0xd163e2 toplev::run_self_tests()
        /home/alecop01/toolchain/src/gcc/gcc/toplev.c:2265
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

If I add -march=armv8-a+simd to enable floating point, the selftests pass:
$ gcc/xgcc -B gcc -xc /dev/null -S -o /dev/null
-fself-test=/home/alecop01/toolchain/src/gcc/gcc/testsuite/selftests
-march=armv8-a+simd
-fself-test: 57120 pass(es) in 0.270736 seconds

At a minimum we probably shouldn't ICE here.

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

end of thread, other threads:[~2023-05-29 10:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 10:09 [Bug target/99723] New: arm: ICE in build_function_type during selftests acoplan at gcc dot gnu.org
2021-03-23 10:39 ` [Bug target/99723] " acoplan at gcc dot gnu.org
2021-10-12 16:19 ` [Bug target/99723] [11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-21 13:57 ` rguenth at gcc dot gnu.org
2022-04-21  7:48 ` rguenth at gcc dot gnu.org
2022-09-28 12:03 ` [Bug target/99723] [11/12/13 " akrl at gcc dot gnu.org
2022-10-10 13:23 ` cvs-commit at gcc dot gnu.org
2023-05-29 10:04 ` [Bug target/99723] [11/12/13/14 " 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).