bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

Internal compiler error in elimination_costs_in_insn #229

Closed LIV2 closed 4 months ago

LIV2 commented 4 months ago

Hi,

I ran into this compiler error after updating to the latest version of GCC 6.5, previously I was using a version from the middle of last year.

The source code I am compiling can be found here

I have traced this down to commit e1a32dd8a3bce9878eb2f043a365124278e37304 - if I build gcc from the commit prior to that I no longer get the error

ubuntu@9f9b2bb8ea85:/workspaces/lide.device/lideflash$ make clean all
rm -rf lideflash
m68k-amigaos-gcc -o lideflash -lamiga -mcrt=nix13 -mcpu=68000 -Wall -Wno-pointer-sign -g -O3 -fomit-frame-pointer flash.c config.c main.c
flash.c: In function 'flash_init':
flash.c:155:1: error: unrecognizable insn:
 }
 ^
(insn 103 22 25 2 (set (mem:QI (plus:SI (reg:SI 8 a0 [orig:32 ide_flashBase.6_8 ] [32])
                (const_int 43690 [0xaaaa])) [0  S1 A8])
        (const_int -16 [0xfffffffffffffff0])) flash.c:54 -1
     (nil))
flash.c:155:1: internal compiler error: in extract_insn, at recog.c:2297
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [Makefile:16: lideflash] Error 1
ubuntu@9f9b2bb8ea85:/workspaces/lide.device/lideflash$ m68k-amigaos-gcc --version
m68k-amigaos-gcc (GCC) 6.5.0b 240504191004
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bebbo commented 4 months ago

Thanks for bisecting and finding the bogus commit!

It's live.

LIV2 commented 4 months ago

Great Thanks!