[Bug rtl-optimization/38412] New: asm-declared register misnamed when feeding asm, "almost" misallocated.
hp at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 5 04:46:00 GMT 2008
Observe with [gcc-4_3-branch revision 142454], --target=cris-axis-elf
with -O2 and the soon attached testcase (from glibc sysdeps/posix/spawni.c and
the CRIS glibc port, to be re-submitted) when assembling:
spawni.s: Assembler messages:
spawni.s:172: Error: gcc bug: $r4,$r10 misallocated1, must be $r9,$r10
This is due to gcc bug-asserts in the asm syscalls (which were put there after
an earlier bug), the generated code looking like:
...
move.d $r4,$r9
#APP
;# 175 "../sysdeps/posix/spawni.c" 1
.ifnc $r4-$r10,$r9-$r10
.error "gcc bug: $r4,$r10 misallocated1, must be $r9,$r10"
.endif
Note that $r9 and $r4 hold the same value, hence the "almost" in the subject.
Something or other is not updated for the asm, which is certainly bad enough.
--
Summary: asm-declared register misnamed when feeding asm,
"almost" misallocated.
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hp at gcc dot gnu dot org
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: cris-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38412
More information about the Gcc-bugs
mailing list