Bug 34807 - SH4 ‘R0_REGS’ spill failure when using asm
Summary: SH4 ‘R0_REGS’ spill failure when using asm
Status: RESOLVED DUPLICATE of bug 34777
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: chrbr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 08:45 UTC by chrbr
Modified: 2008-01-19 00:50 UTC (History)
2 users (show)

See Also:
Host:
Target: sh-superh-elf,sh4-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Test case (142 bytes, text/x-c)
2008-01-16 08:47 UTC, chrbr
Details
fails with 4.2.2 and 4.3.0 (174 bytes, text/x-c)
2008-01-16 11:15 UTC, chrbr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chrbr 2008-01-16 08:45:31 UTC
Building the attached file (extracted and reduced from the uclibc) with -O[1,2,3,s] -fPIC fails :

test.c: In function ‘_start’:
test.c:14: error: unable to find a register to spill in class ‘R0_REGS’
test.c:14: error: this is the insn:
(insn 16 28 17 0 (set (mem/c/i:SI (plus:SI (reg:SI 12 r12)
                (reg/f:SI 1 r1 [160])) [0 buf+0 S4 A32])
        (reg/v:SI 0 r0 [ __sc0 ])) 179 {movsi_ie} (insn_list:REG_DEP_TRUE 13 (insn_list:REG_DEP_TRUE 11 (nil)))
    (expr_list:REG_DEAD (reg/f:SI 1 r1 [160])
        (expr_list:REG_DEAD (reg/v:SI 0 r0 [ __sc0 ])
            (nil))))
test.c:14: internal compiler error: in spill_failure
Comment 1 chrbr 2008-01-16 08:47:10 UTC
Created attachment 14945 [details]
Test case

build with sh-superh-elf-gcc -O1 -fPIC test.c -S
Comment 2 chrbr 2008-01-16 11:15:41 UTC
Created attachment 14946 [details]
fails with 4.2.2 and 4.3.0
Comment 3 Kazumoto Kojima 2008-01-19 00:50:28 UTC

*** This bug has been marked as a duplicate of 34777 ***