public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53038] New: cfi_restore for cr before cr is actually restored
@ 2012-04-19 7:21 amodra at gmail dot com
2012-04-19 7:34 ` [Bug target/53038] " amodra at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-04-19 7:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
Bug #: 53038
Summary: cfi_restore for cr before cr is actually restored
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: amodra@gmail.com
void s_c (void)
{
char a[33];
__asm __volatile ("#%0" : "=m" (a) : : "cr2");
}
compiled with -m32 -O2 -g gives this epilogue
lwz 12,76(1)
addi 1,1,80
.cfi_restore 70
.cfi_def_cfa_offset 0
mtcrf 32,12
blr
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53038] cfi_restore for cr before cr is actually restored
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
@ 2012-04-19 7:34 ` amodra at gmail dot com
2012-04-19 15:34 ` amodra at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-04-19 7:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |powerpc-linux
Known to fail| |4.5.5, 4.6.4, 4.7.1, 4.8.0
--- Comment #1 from Alan Modra <amodra at gmail dot com> 2012-04-19 07:32:30 UTC ---
Earlier compilers without shrink-wrap on by default need
-fasynchronous-unwind-tables to get the epilogue cfi_restores.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53038] cfi_restore for cr before cr is actually restored
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
2012-04-19 7:34 ` [Bug target/53038] " amodra at gmail dot com
@ 2012-04-19 15:34 ` amodra at gmail dot com
2012-04-19 15:35 ` amodra at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-04-19 15:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
--- Comment #2 from Alan Modra <amodra at gmail dot com> 2012-04-19 15:27:47 UTC ---
testing a fix
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53038] cfi_restore for cr before cr is actually restored
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
2012-04-19 7:34 ` [Bug target/53038] " amodra at gmail dot com
2012-04-19 15:34 ` amodra at gmail dot com
@ 2012-04-19 15:35 ` amodra at gmail dot com
2012-05-01 4:04 ` amodra at gcc dot gnu.org
2013-02-06 3:05 ` amodra at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2012-04-19 15:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-04-19
AssignedTo|unassigned at gcc dot |amodra at gmail dot com
|gnu.org |
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53038] cfi_restore for cr before cr is actually restored
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
` (2 preceding siblings ...)
2012-04-19 15:35 ` amodra at gmail dot com
@ 2012-05-01 4:04 ` amodra at gcc dot gnu.org
2013-02-06 3:05 ` amodra at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: amodra at gcc dot gnu.org @ 2012-05-01 4:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
--- Comment #3 from Alan Modra <amodra at gcc dot gnu.org> 2012-05-01 04:03:25 UTC ---
Author: amodra
Date: Tue May 1 04:03:21 2012
New Revision: 187010
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187010
Log:
PR target/53038
* config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
load_cr_save, add_crlr_cfa_restore): New functions.
(rs6000_restore_saved_cr): Rename to..
(restore_saved_cr): ..this. Add cfa_restore notes for cr.
(rs6000_emit_epilogue): Use new functions. Adjust condition
for emitting lr and cr cfa_restore. Emit cfa_restores for fp
regs when using out-of-line restore only when shrink wrapping.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53038] cfi_restore for cr before cr is actually restored
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
` (3 preceding siblings ...)
2012-05-01 4:04 ` amodra at gcc dot gnu.org
@ 2013-02-06 3:05 ` amodra at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: amodra at gmail dot com @ 2013-02-06 3:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53038
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Alan Modra <amodra at gmail dot com> 2013-02-06 03:04:58 UTC ---
Fixed mainline. Not a regression so not applying to FSF branches.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-02-06 3:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19 7:21 [Bug target/53038] New: cfi_restore for cr before cr is actually restored amodra at gmail dot com
2012-04-19 7:34 ` [Bug target/53038] " amodra at gmail dot com
2012-04-19 15:34 ` amodra at gmail dot com
2012-04-19 15:35 ` amodra at gmail dot com
2012-05-01 4:04 ` amodra at gcc dot gnu.org
2013-02-06 3:05 ` amodra at gmail dot com
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).