Compile error by optimization
武田 直哉
n-takeda@kwansei.ac.jp
Wed Jul 22 04:16:00 GMT 2009
Hi,
I use h8300-gcc.
Only when optional optimization was applied, compile error occurred in this attached program.
If optional optimization is not used, it is possible to execute the program.
------------------------------------------------------------------
This is a command and a compile error message.
user@user-laptop:~/study/error/h8300/exec-error_4.4.0$ /usr/local/gcc-4.4.0_h8300-elf/bin/h8300-elf-gcc error3.c -O2
error3.c: In function 'main':
error3.c:24: error: unable to find a register to spill in class 'GENERAL_REGS'
error3.c:24: error: this is the insn:
(insn 15 14 16 2 error3.c:14 (parallel [
(set (reg:SI 0 r0)
(ashiftrt:SI (reg:SI 4 r4 [orig:19 VAR134___0 ] [19])
(reg:QI 0 r0 [orig:24 VAR191___1+3 ] [24])))
(clobber (scratch:QI))
]) 222 {*shiftsi} (expr_list:REG_DEAD (reg:QI 0 r0 [orig:24 VAR191___1+3 ] [24])
(expr_list:REG_DEAD (reg:SI 4 r4 [orig:19 VAR134___0 ] [19])
(nil))))
error3.c:24: confused by earlier errors, bailing out
------------------------------------------------------------------
package
binutils-2.19.1
gcc-4.4.0
newlib-1.17.0
gdb-6.8
gmp-4.3.0
mpfr-2.3.2
-----------------------------------------------------------------
OS
user@user-laptop:~$ uname -a
Linux user-laptop 2.6.27-14-generic #1 SMP Tue Jun 30 19:57:39 UTC 2009 i686 GNU/Linux
------------------------------------------------------------------
gcc version
Using built-in specs.
Target: h8300-elf
Configured with: ../gcc-4.4.0/configure --target=h8300-elf --prefix=/usr/local/gcc-4.4.0_h8300-elf/ --disable-nls --enable-languages=c --with-newlib --with-headers=/home/user/build/gcc-4.4.0_h8300-elf/newlib-1.17.0/newlib/libc/include/ --with-gmp=/usr/local/gmp/4.3.0/ --with-mpfr=/usr/local/mpfr/2.4.1/
Thread model: single
gcc version 4.4.0 (GCC)
------------------------------------------------------------------
I found other programs that a similar compile error occurred.
I appended only one because I don't understood whether I may append everything.
Naoya Takeda
Kwansei Gakuin University in Japan
mail: n-takeda@kwansei.ac.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error3.c
Type: text/x-csrc
Size: 342 bytes
Desc: error3.c
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20090722/558f4353/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error3.i
Type: application/octet-stream
Size: 27996 bytes
Desc: error3.i
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20090722/558f4353/attachment.obj>
More information about the Gcc-bugs
mailing list