------- Comment #4 from LAL at pro dot onet dot pl  2009-03-20 19:29 -------
Created an attachment (id=17504)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17504&action=view)
Test case for spotting similar error

The host is Fedora 8.

[ar...@gizmo AVR]$ avr-gcc -v -save-temps -std=gnu99 -pedantic -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Wshadow -Werror -g -Os
-mmcu=atmega8 -DF_CPU=4000000 -I../sst -I../examples -I. ../sst/sst_timer.c -c
-o sst_timer.o
Using built-in specs.
Target: avr
Configured with: ../gcc-4.3.3/configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls
--disable-libssp --with-system-zlib --enable-version-specific-runtime-libs
Thread model: single
gcc version 4.3.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=gnu99' '-pedantic' '-Wall'
'-Wpointer-arith' '-Wstrict-prototypes' '-Winline' '-Wundef' '-Wshadow'
'-Werror' '-g' '-Os' '-mmcu=atmega8' '-DF_CPU=4000000' '-I../sst'
'-I../examples' '-I.' '-c' '-E'
 /usr/libexec/gcc/avr/4.3.3/cc1 -E -quiet -v -I../sst -I../examples -I.
-imultilib avr4 -DF_CPU=4000000 ../sst/sst_timer.c -mmcu=atmega8 -std=gnu99
-pedantic -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Wshadow
-Werror -fworking-directory -Os -fpch-preprocess
ignoring nonexistent directory
"/usr/lib/gcc/avr/4.3.3/../../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 ../sst
 ../examples
 .
 /usr/lib/gcc/avr/4.3.3/include
 /usr/lib/gcc/avr/4.3.3/include-fixed
 /usr/lib/gcc/avr/4.3.3/../../../../avr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/avr/4.3.3/:/usr/libexec/gcc/avr/4.3.3/:/usr/libexec/gcc/avr/:/usr/lib/gcc/avr/4.3.3/:/usr/lib/gcc/avr/:/usr/lib/gcc/avr/4.3.3/../../../../avr/bin/
LIBRARY_PATH=/usr/lib/gcc/avr/4.3.3/avr4/:/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/avr4/:/usr/lib/gcc/avr/4.3.3/:/usr/lib/gcc/avr/4.3.3/../../../../avr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=gnu99' '-pedantic' '-Wall'
'-Wpointer-arith' '-Wstrict-prototypes' '-Winline' '-Wundef' '-Wshadow'
'-Werror' '-g' '-Os' '-mmcu=atmega8' '-DF_CPU=4000000' '-I../sst'
'-I../examples' '-I.' '-c' '-E'
Using built-in specs.
Target: avr
Configured with: ../gcc-4.3.3/configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --target=avr --enable-languages=c,c++ --disable-nls
--disable-libssp --with-system-zlib --enable-version-specific-runtime-libs
Thread model: single
gcc version 4.3.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=gnu99' '-pedantic' '-Wall'
'-Wpointer-arith' '-Wstrict-prototypes' '-Winline' '-Wundef' '-Wshadow'
'-Werror' '-g' '-Os' '-mmcu=atmega8' '-DF_CPU=4000000' '-I../sst'
'-I../examples' '-I.' '-c' '-o'
'/home/artur/.ccache/tmp.hash.gizmo.my.net.7744.o'
 /usr/libexec/gcc/avr/4.3.3/cc1 -fpreprocessed
/home/artur/.ccache/sst_timer.tmp.gizmo.my.net.7744.i -quiet -dumpbase
sst_timer.tmp.gizmo.my.net.7744.i -mmcu=atmega8 -auxbase-strip
/home/artur/.ccache/tmp.hash.gizmo.my.net.7744.o -g -Os -pedantic -Wall
-Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Wshadow -Werror
-std=gnu99 -version -o sst_timer.tmp.gizmo.my.net.7744.s
GNU C (GCC) version 4.3.3 (avr)
        compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-33), GMP
version 4.2.2, MPFR version 2.3.0-p2.
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129486
Compiler executable checksum: 0f701a251c25f23220baf95564516c01
../sst/sst_timer.c: In function 'SST_TimerTick':
../sst/sst_timer.c:294: error: unable to find a register to spill in class
'BASE_POINTER_REGS'
../sst/sst_timer.c:294: error: this is the insn:
(insn 197 129 131 26 ../sst/sst_timer.c:288 (set (mem/c:QI (plus:HI (reg/f:HI
28 r28)
                (const_int 1 [0x1])) [10 S1 A8])
        (reg:QI 25 r25)) 4 {*movqi} (nil))
../sst/sst_timer.c:294: confused by earlier errors, bailing out


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39212

Reply via email to