target/10567: -fno-delayed-branch no honored when -mflat
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
>Release:        gcc-3.2.2
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'.
Compile the testcase with -mflat -fno-delayed-branch
on any 32-bit sparc target.
The -mflat epilogue output code needs to honor
the delayed branch setting.
Content-Type: application/octet-stream; name="testcase.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="testcase.c"


More information about the Gcc-bugs mailing list