[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Compiler bug ?
From: |
Larry Barello |
Subject: |
[avr-gcc-list] Compiler bug ? |
Date: |
Wed, 16 Apr 2003 15:14:22 -0700 |
avr-gcc -S -Os -fno-reorder-blocks -Wall -g -mmcu=attiny26 foo.c -o
foo.s
foo.c: In function `DoDeadBand':
foo.c:21: error: unable to generate reloads for:
(insn:QI 31 28 32 2 006B7390 (set (cc0)
(compare (sign_extend:HI (reg/v:QI 24 r24 [42]))
(const_int -20 [0xffffffec]))) 94 {*cmpqi_sign_extend}
(nil)
(nil))
foo.c:21: internal compiler error: in find_reloads, at
gcc/reload.c:3636
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [foo.s] Error 1
---- Winavr Version -----
Reading specs from c:\WinAVR\bin\..\lib\gcc-lib\avr\3.3\specs
Configured with:
../configure --prefix=/e/avrdev/install --target=avr --enable-language
s=c,c++ --disable-nls
Thread model: single
gcc version 3.3 20030310 (prerelease)
--- foo.c ---
#define DEADBAND_LOW (20) // +/-20 us
char DoDeadBand(char raw)
{
char deadband;
deadband = DEADBAND_LOW;
if (raw > deadband)
{
return raw - deadband;
}
else if (raw < -deadband)
{
return raw + deadband;
}
else
{
return 0;
}
}
- [avr-gcc-list] Compiler bug ?,
Larry Barello <=
Re: [avr-gcc-list] Compiler bug ?, E. Weddington, 2003/04/16