The -mrelax support is broken for sh-elf since PIC code support was added. Most of the work to fix this will likely be in bfd, ld and gas, although some gcc changes may also be necessary. IIRC I've fixed the switch tables once, but ordinary branches are still broken.
gcc R117374 with binutils/newlib D2006.10.02.18.00.00 shows 681 failures for check-gcc check-target-libstdc++-v3 testing the variations sh-hms-sim sh-hms-sim/-m4/-ml with a small patch to enable -mrelax when optimizing, the tests are not finished after 17.5 hours, but 2098 failures have been detected so far. -- Summary: -mrelax broken for sh-elf Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: amylaar at gcc dot gnu dot org CC: andrew dot stubbs at st dot com,aoliva at sourceware dot org,bug-binutils at gnu dot org,kkojima at rr dot iij4u dot or dot jp GCC target triplet: sh-elf http://sourceware.org/bugzilla/show_bug.cgi?id=3298 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils