Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 38159
Product:  
Component:  
Status: UNCONFIRMED
Resolution:
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Eric Weddington <eric.weddington@atmel.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 38159 depends on: Show dependency tree
Show dependency graph
Bug 38159 blocks:

Additional Comments:






Mark bug as waiting for feedback



    

    

View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2008-11-16 17:20
ICE on AVR target: gcc.c-torture/execute/pr38051.c compilation,  -O3
-fomit-frame-pointer -funroll-all-loops -finline-functions

Executing on host: /usr/local/avrdev/gcc/build/gcc/xgcc
-B/usr/local/avrdev/gcc/build/gcc/
/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c  -w 
-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions 
-DSTACK_SIZE=2048 -DNO_TRAMPOLINES  -DSIGNAL_SUPPRESS -mmcu=atmega128 
/root/dejagnuboards/exit.c -Wl,-u,vfprintf -lprintf_flt
-Wl,-Tbss=0x802000,--defsym=__heap_end=0x80ffff  -lm   -o
/usr/local/avrdev/gcc/build/gcc/testsuite/gcc/pr38051.x5    (timeout = 300)
/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c: In
function 'mymemcmp':

/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c:189:
error: unable to find a register to spill in class 'POINTER_REGS'

/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c:189:
error: this is the insn:

(insn 371 370 372 10
/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c:63 (set
(reg/v:SI 397 [ a0 ])

        (mem:SI (subreg:HI (reg/v:SI 413 [ srcp1 ]) 0) [2 S4 A8])) 12 {*movsi}
(nil))

/usr/local/avrdev/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/pr38051.c:189:
internal compiler error: in spill_failure, at reload1.c:2093

Note that  test is successful with:
PASS: gcc.c-torture/execute/pr38051.c execution,  -O3 -fomit-frame-pointer
-funroll-loops 

The only difference is the flag -finline-functions, which seems to trigger the
bug.

------- Comment #1 From Richard Guenther 2008-11-16 22:26 -------
What's sizeof (void *) and sizeof (long) for avr?

------- Comment #2 From Eric Weddington 2008-11-17 00:15 -------
(In reply to comment #1)
> What's sizeof (void *) and sizeof (long) for avr?
> 

char: 8-bit
int/short: 16-bit
pointer: 16-bit
long: 32-bit
long long: 64-bit

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug