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

* [Bug target/99723] arm: ICE in build_function_type during selftests
  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 ` acoplan at gcc dot gnu.org
  2021-10-12 16:19 ` [Bug target/99723] [11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-03-23 10:39 UTC (permalink / raw)
  To: gcc-bugs

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

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|aarch64                     |arm

--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
@richi: this is an arm (as in AArch32) bug, not aarch64.

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

* [Bug target/99723] [11/12 Regression] arm: ICE in build_function_type during selftests
  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 ` pinskia at gcc dot gnu.org
  2022-01-21 13:57 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-12 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|arm: ICE in                 |[11/12 Regression] arm: ICE
                   |build_function_type during  |in build_function_type
                   |selftests                   |during selftests
   Target Milestone|---                         |11.3

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

* [Bug target/99723] [11/12 Regression] arm: ICE in build_function_type during selftests
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-21 13:57 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

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

* [Bug target/99723] [11/12 Regression] arm: ICE in build_function_type during selftests
  2021-03-23 10:09 [Bug target/99723] New: arm: ICE in build_function_type during selftests acoplan at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21  7:48 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.3                        |11.4

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.

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

* [Bug target/99723] [11/12/13 Regression] arm: ICE in build_function_type during selftests
  2021-03-23 10:09 [Bug target/99723] New: arm: ICE in build_function_type during selftests acoplan at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-04-21  7:48 ` rguenth at gcc dot gnu.org
@ 2022-09-28 12:03 ` 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
  6 siblings, 0 replies; 8+ messages in thread
From: akrl at gcc dot gnu.org @ 2022-09-28 12:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from akrl at gcc dot gnu.org ---
A fix was proposed here:
<https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602349.html>

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

* [Bug target/99723] [11/12/13 Regression] arm: ICE in build_function_type during selftests
  2021-03-23 10:09 [Bug target/99723] New: arm: ICE in build_function_type during selftests acoplan at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-10 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrea Corallo <akrl@gcc.gnu.org>:

https://gcc.gnu.org/g:248c8aeebc49aae3fd96bd587367d12e7c8b3c3a

commit r13-3201-g248c8aeebc49aae3fd96bd587367d12e7c8b3c3a
Author: Andrea Corallo <andrea.corallo@arm.com>
Date:   Tue Sep 27 16:20:28 2022 +0200

    Don't ICE running selftests if errors were raised [PR99723]

    Hi all

    this is to address PR 99723.

    In the PR GCC crashes as the initialization of common trees is not
    performed as no compilation is happening, this is because we raise an
    error earlier while processing the arch flags.

    This patch changes the code to execute selftests only if no errors
    where raised before.

    Bootstrapped on aarch64, okay for trunk?

    Best Regards

      Andrea

    2022-09-27  Andrea Corallo  <andrea.corallo@arm.com>

            PR other/99723
            * toplev.cc (toplev::main): Don't run self tests in case of
            previous error.

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

* [Bug target/99723] [11/12/13/14 Regression] arm: ICE in build_function_type during selftests
  2021-03-23 10:09 [Bug target/99723] New: arm: ICE in build_function_type during selftests acoplan at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2022-10-10 13:23 ` cvs-commit at gcc dot gnu.org
@ 2023-05-29 10:04 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:04 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|11.4                        |11.5

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.

^ 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).