target/10567: -fno-delayed-branch no honored when -mflat

davem@redhat.com davem@redhat.com
Wed Apr 30 17:06:00 GMT 2003


>Number:         10567
>Category:       target
>Synopsis:       -fno-delayed-branch no honored when -mflat
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 30 16:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     davem@redhat.com
>Release:        gcc-3.2.2
>Organization:
>Environment:
sparc-unknown-linux
>Description:
When using -mflat -fno-delayed-branch and a function
allocates stack space to save registers, the delay slot
of the 'retl' return instruction is filled with the
stack deallocation instruction.

Because -fno-delayed-branch is specified, the stack deallocation should occur before the 'retl' and it's
delay slot should get a 'nop'.
>How-To-Repeat:
Compile the testcase with -mflat -fno-delayed-branch
on any 32-bit sparc target.
>Fix:
The -mflat epilogue output code needs to honor
the delayed branch setting.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="testcase.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testcase.c"

ZXh0ZXJuIGludCBiYXIodm9pZCk7CgppbnQgZm9vKGludCBhKQp7CglyZXR1cm4gYSArIGJhcigp
Owp9Cg==



More information about the Gcc-bugs mailing list