public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16272] New: single component struct function arguments passed wrongly
@ 2004-06-29 15:00 amodra at bigpond dot net dot au
2004-06-29 15:10 ` [Bug target/16272] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-06-29 15:00 UTC (permalink / raw)
To: gcc-bugs
According to the PPC64 Linux ABI, the following functions argument should be
passed in gprs. Instead, I find that x1 is passed in an fpr.
typedef struct { double d; } sd;
typedef struct { double d1, d2; } sd2;
double f1 (sd x1) { return x1.d; }
double f2 (sd2 x2) { return x2.d1; }
This is another symptom of gcc's habit of treating a single component struct as
if the component were not wrapped in "struct { }".
--
Summary: single component struct function arguments passed
wrongly
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amodra at bigpond dot net dot au
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16272
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/16272] single component struct function arguments passed wrongly
2004-06-29 15:00 [Bug c/16272] New: single component struct function arguments passed wrongly amodra at bigpond dot net dot au
@ 2004-06-29 15:10 ` pinskia at gcc dot gnu dot org
2004-07-26 16:02 ` pinskia at gcc dot gnu dot org
2004-07-26 16:55 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-29 15:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
Keywords| |ABI, wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16272
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/16272] single component struct function arguments passed wrongly
2004-06-29 15:00 [Bug c/16272] New: single component struct function arguments passed wrongly amodra at bigpond dot net dot au
2004-06-29 15:10 ` [Bug target/16272] " pinskia at gcc dot gnu dot org
@ 2004-07-26 16:02 ` pinskia at gcc dot gnu dot org
2004-07-26 16:55 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-26 16:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-26 16:02 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-26 16:02:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16272
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/16272] single component struct function arguments passed wrongly
2004-06-29 15:00 [Bug c/16272] New: single component struct function arguments passed wrongly amodra at bigpond dot net dot au
2004-06-29 15:10 ` [Bug target/16272] " pinskia at gcc dot gnu dot org
2004-07-26 16:02 ` pinskia at gcc dot gnu dot org
@ 2004-07-26 16:55 ` dje at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-07-26 16:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2004-07-26 16:55 -------
The ABI will be changed to reflect GCC behavior. GCC's behavior will not be
changed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16272
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-26 16:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-29 15:00 [Bug c/16272] New: single component struct function arguments passed wrongly amodra at bigpond dot net dot au
2004-06-29 15:10 ` [Bug target/16272] " pinskia at gcc dot gnu dot org
2004-07-26 16:02 ` pinskia at gcc dot gnu dot org
2004-07-26 16:55 ` dje at gcc dot gnu dot org
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).