[Bug middle-end/55195] [4.8 Regression] shorten_branches generates incorrect forward branch distances
amylaar at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Nov 4 16:59:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55195
--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2012-11-04 16:59:07 UTC ---
I have done a -j2 bootstrap on gcc61, and in fails somewhere else in a similar
fashion. I then transplanted some files to my local (faster) cross
environment.
I've hacked final.c to provide the equivalent of the sh/arc -misize option, and
I see some sizeable chunks of code being estimated with a small size:
.L19464:
; at 11cc
addil LT'.L19517,%r19
ldw RT'.L19517(%r1),%r1
ldw 0(%r1),%r1
bb,>=,n %r1,30,.+16
depi 0,31,2,%r1
ldw 4(%sr0,%r1),%r19
ldw 0(%sr0,%r1),%r1
bl .+8,%r2
addi 8,%r2,%r2
ble 0(%sr4,%r1)
stw %r31,-24(%sp)
.LVL19507:
.L19463:
; at 11d4
addil LT'.L19517,%r19
ldw RT'.L19517(%r1),%r1
ldw 0(%r1),%r1
bb,>=,n %r1,30,.+16
depi 0,31,2,%r1
ldw 4(%sr0,%r1),%r19
ldw 0(%sr0,%r1),%r1
bl .+8,%r2
addi 8,%r2,%r2
ble 0(%sr4,%r1)
stw %r31,-24(%sp)
.LVL19508:
.L19462:
; at 11dc
More information about the Gcc-bugs
mailing list