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

            Bug ID: 92946
           Summary: [9 Regression] [SH] Native GCC crashes when invoking
                    with -m4 -m4-nofpu -pipe
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: gcc-bugzilla at mkarcher dot dialup.fu-berlin.de,
                    jrtc27 at jrtc27 dot com, oleg.e...@t-online.de
  Target Milestone: ---
            Target: sh*-*-*

In Debian, kernel builds have been failing for a while now on sh4 due to gcc-9
crashing when run natively on sh4:

root@tirpitz:~> gcc-9 -m4 -m4-nofpu -pipe -c -x c /dev/null
malloc(): corrupted top size
Aborted
root@tirpitz:~>

See
https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sh4&ver=5.3.15-1&stamp=1575738446&raw=0
for a log file.

The issue does not reproduce on earlier GCC versions:

root@tirpitz:~> gcc-5 -m4 -m4-nofpu -pipe -c -x c /dev/null
root@tirpitz:~> gcc-6 -m4 -m4-nofpu -pipe -c -x c /dev/null
root@tirpitz:~> gcc-7 -m4 -m4-nofpu -pipe -c -x c /dev/null
root@tirpitz:~> gcc-8 -m4 -m4-nofpu -pipe -c -x c /dev/null
root@tirpitz:~>

Reply via email to