public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/31830] Input parameter trashed with optimization -O when using a union and bit field
[not found] <bug-31830-4@http.gcc.gnu.org/bugzilla/>
@ 2012-02-02 8:25 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02 8:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31830
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 08:25:41 UTC ---
Since 4.1.x and 4.2.x are no longer maintained and it was fixed in 4.3.0, I am
closing it as fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rtl-optimization/31830] Input parameter trashed with optimization -O when using a union and bit field
2007-05-04 23:38 [Bug target/31830] New: " gmorain at gmail dot com
2007-05-04 23:49 ` [Bug rtl-optimization/31830] " pinskia at gcc dot gnu dot org
@ 2007-05-19 1:17 ` gmorain at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: gmorain at gmail dot com @ 2007-05-19 1:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from gmorain at gmail dot com 2007-05-19 02:17 -------
(In reply to comment #2)
> I can reproduce the failure on powerpc-linux-gnu with 4.1.0 but it works on the
> trunk. combine is doing something wrong.
>
I tested it on 4.2.0, and it works OK. Except, I can't understand why the
stack frame is 32 bytes instead of 16.
powerpc-elf-objdump -S foo.o
foo.o: file format elf32-powerpc
Disassembly of section .text:
00000000 <foo>:
0: 94 21 ff e0 stwu r1,-32(r1)
4: 7c 08 02 a6 mflr r0
8: 93 a1 00 14 stw r29,20(r1)
c: 90 01 00 24 stw r0,36(r1)
10: 7c 7d 1b 78 mr r29,r3
14: 48 00 00 01 bl 14 <foo+0x14>
18: 53 a3 c0 0e rlwimi r3,r29,24,0,7
1c: 48 00 00 01 bl 1c <foo+0x1c>
20: 80 01 00 24 lwz r0,36(r1)
24: 7c 08 03 a6 mtlr r0
28: 83 a1 00 14 lwz r29,20(r1)
2c: 38 21 00 20 addi r1,r1,32
30: 4e 80 00 20 blr
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31830
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug rtl-optimization/31830] Input parameter trashed with optimization -O when using a union and bit field
2007-05-04 23:38 [Bug target/31830] New: " gmorain at gmail dot com
@ 2007-05-04 23:49 ` pinskia at gcc dot gnu dot org
2007-05-19 1:17 ` gmorain at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-04 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-05-05 00:48 -------
I can reproduce the failure on powerpc-linux-gnu with 4.1.0 but it works on the
trunk. combine is doing something wrong.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
Keywords| |wrong-code
Known to fail| |4.1.0
Known to work| |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31830
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-02 8:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-31830-4@http.gcc.gnu.org/bugzilla/>
2012-02-02 8:25 ` [Bug rtl-optimization/31830] Input parameter trashed with optimization -O when using a union and bit field pinskia at gcc dot gnu.org
2007-05-04 23:38 [Bug target/31830] New: " gmorain at gmail dot com
2007-05-04 23:49 ` [Bug rtl-optimization/31830] " pinskia at gcc dot gnu dot org
2007-05-19 1:17 ` gmorain 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).