This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]