public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* target/10567: -fno-delayed-branch no honored when -mflat
@ 2003-04-30 16:16 davem
  0 siblings, 0 replies; only message in thread
From: davem @ 2003-04-30 16:16 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-30 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-30 16:16 target/10567: -fno-delayed-branch no honored when -mflat davem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).