Bug 43267 - internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1603
Summary: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1603
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.4.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2010-03-05 12:10 UTC by Andre Heinze
Modified: 2021-09-19 10:06 UTC (History)
1 user (show)

See Also:
Host: bfin-elf
Target: bfin-elf
Build: bfin-elf
Known to work:
Known to fail:
Last reconfirmed:


Attachments
testcase + error ouptut (1.66 KB, text/plain)
2010-03-05 12:13 UTC, Andre Heinze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Heinze 2010-03-05 12:10:36 UTC
Compiling functions with

__attribute__ ((nmi_handler))
__attribute__ ((exception_handler)) or
__attribute__ ((interrupt_handler))

and with

-O1 -gdwarf-2 -mlong-calls -fomit-frame-pointer -finline-functions -std=gnu9x -Wall -MMD -Wno-char-subscripts -mcsync-anomaly -mspecld-anomaly

produdes the following output:

error: insn does not satisfy its constraints:
(insn 15 14 16 2 CPU/testCase_GccError.c:93 (set (reg:BI 34 CC)
        (const_int 1 [0x1])) 8 {movbi} (nil))
CPU/testCase_GccError.c:95: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1603
Please submit a full bug report,


When compiling without Optimiziation the output is different:

error: insn does not satisfy its constraints:
(insn 15 14 16 2 CPU/testCase_GccError.c:93 (set (reg:BI 34 CC)
        (const_int 1 [0x1])) 8 {movbi} (nil))
CPU/testCase_GccError.c:95: internal compiler error: in extract_constrain_insn_cached, at recog.c:1967


I compiled with gcc4.4.3. I tried some versions before - the error occures since 4.4.0. ´Cause of the version, I even dealed with the options of the IRA (internal register allocator) (e.g. -fira-algorithm=priority), but the errors still the same.
Comment 1 Andre Heinze 2010-03-05 12:13:24 UTC
Created attachment 20027 [details]
testcase + error ouptut

compiling:  testCase_GccError.c
Using built-in specs.
Target: bfin-elf
Configured with: /src/gcc/gcc-4.4.3/configure --target=bfin-elf --prefix=/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf --with-sysroot=/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf --disable-nls --without-headers --with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c : (reconfigured) /src/gcc/gcc-4.4.3/configure --target=bfin-elf --prefix=/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf --with-sysroot=/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf --disable-nls --with-newlib --with-gnu-as --with-gnu-ld --disable-shared --disable-libssp --enable-languages=c --disable-win32-registry
Thread model: single
gcc version 4.4.3 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-mcpu=bf561' '-v' '-save-temps' '-O1' '-gdwarf-2' '-mlong-calls' '-fomit-frame-pointer' '-finline-functions' '-std=gnu9x' '-Wall' '-MMD' '-Wno-char-subscripts' '-mcsync-anomaly' '-mspecld-anomaly' '-o' '../projects/Gemma/Topas/objects/MesOS/testCase_GccError.o' '-I./include' '-I./include/nano-X' '-I../projects/Gemma/Topas/resources' '-I../hardware' '-I/usr/X11R6/include' '-DGCC'
 /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../libexec/gcc/bfin-elf/4.4.3/cc1.exe -E -quiet -v -I./include -I./include/nano-X -I../projects/Gemma/Topas/resources -I../hardware -I/usr/X11R6/include -iprefix /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/bfin-elf/4.4.3/ -isysroot /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../../bfin-elf -MMD ../projects/Gemma/Topas/objects/MesOS/testCase_GccError.d -MQ ../projects/Gemma/Topas/objects/MesOS/testCase_GccError.o -DGCC CPU/testCase_GccError.c -mcpu=bf561 -mlong-calls -mcsync-anomaly -mspecld-anomaly -std=gnu9x -Wall -Wno-char-subscripts -fomit-frame-pointer -finline-functions -gdwarf-2 -fworking-directory -O1 -fpch-preprocess -o testCase_GccError.i
ignoring nonexistent directory "/cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../../bfin-elf/usr/local/include"
ignoring duplicate directory "/cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/../../lib/gcc/bfin-elf/4.4.3/include"
ignoring duplicate directory "/cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/../../lib/gcc/bfin-elf/4.4.3/include-fixed"
ignoring duplicate directory "/cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/../../lib/gcc/bfin-elf/4.4.3/../../../../bfin-elf/include"
ignoring nonexistent directory "/cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../../bfin-elf/usr/include"
ignoring nonexistent directory "/usr/X11R6/include"
#include "..." search starts here:
#include <...> search starts here:
 ./include
 ./include/nano-X
 ../projects/Gemma/Topas/resources
 ../hardware
 /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/bfin-elf/4.4.3/include
 /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/bfin-elf/4.4.3/include-fixed
 /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../lib/gcc/bfin-elf/4.4.3/../../../../bfin-elf/include
End of search list.
COLLECT_GCC_OPTIONS='-c' '-mcpu=bf561' '-v' '-save-temps' '-O1' '-gdwarf-2' '-mlong-calls' '-fomit-frame-pointer' '-finline-functions' '-std=gnu9x' '-Wall' '-MMD' '-Wno-char-subscripts' '-mcsync-anomaly' '-mspecld-anomaly' '-o' '../projects/Gemma/Topas/objects/MesOS/testCase_GccError.o' '-I./include' '-I./include/nano-X' '-I../projects/Gemma/Topas/resources' '-I../hardware' '-I/usr/X11R6/include' '-DGCC'
 /cygdrive/c/cygwin/gcc/gcc4.4.3-bin2.20-lib1.18.0/bfin-elf/bin/../libexec/gcc/bfin-elf/4.4.3/cc1.exe -fpreprocessed testCase_GccError.i -quiet -dumpbase testCase_GccError.c -mcpu=bf561 -mlong-calls -mcsync-anomaly -mspecld-anomaly -auxbase-strip ../projects/Gemma/Topas/objects/MesOS/testCase_GccError.o -gdwarf-2 -O1 -Wall -Wno-char-subscripts -std=gnu9x -version -fomit-frame-pointer -finline-functions -o testCase_GccError.s
GNU C (GCC) version 4.4.3 (bfin-elf)
	compiled by GNU C version 4.3.4 20090804 (release) 1, GMP version 4.3.1, MPFR version 2.4.1-p5.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 8c84f2563d47e3c346fb6d3bf608a2c4
CPU/testCase_GccError.c: In function 'CPU_isrNMI':
CPU/testCase_GccError.c:95: error: insn does not satisfy its constraints:
(insn 15 14 16 2 CPU/testCase_GccError.c:93 (set (reg:BI 34 CC)
        (const_int 1 [0x1])) 8 {movbi} (nil))
CPU/testCase_GccError.c:95: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1603
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Comment 2 Andrew Pinski 2021-09-19 10:06:12 UTC
Might have been introduced by r0-90362.