[Bug rtl-optimization/59942] pdp11-aout-gcc: PDP-11/10 code generation crashes when trying to do multiple shifts.
cptjustice at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 16 20:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59942
Patrick Conlon <cptjustice at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cptjustice at gmail dot com
--- Comment #1 from Patrick Conlon <cptjustice at gmail dot com> ---
gcc version 9.0.0 20180808 (experimental) (GCC) no longer produces this
compiler error.
Output of pdp11-aout-gcc -m10... :
.text
.even
.globl _main
_main:
mov r5,-(sp)
mov sp,r5
add $-04,sp
jsr pc,___main
mov $023420,-02(r5)
mov -02(r5),r0
mov $011,r1
mov -02(r5),r0
L_5:
asr r0
dec r1
bne L_5
mov r0,-04(r5)
clr r0
mov r5,sp
mov (sp)+,r5
rts pc
Output of -m40 option:
.text
.even
.globl _main
_main:
mov r5,-(sp)
mov sp,r5
add $-04,sp
jsr pc,___main
mov $023420,-02(r5)
mov -02(r5),r0
ash $-011,r0
mov r0,-04(r5)
clr r0
mov r5,sp
mov (sp)+,r5
rts pc
More information about the Gcc-bugs
mailing list