This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
middle-end/8683: Small structs returned in registers are incorrectly justified
- From: dave dot anglin at nrc dot ca
- To: gcc-gnats at gcc dot gnu dot org
- Date: 22 Nov 2002 23:30:13 -0000
- Subject: middle-end/8683: Small structs returned in registers are incorrectly justified
- Reply-to: dave dot anglin at nrc dot ca
>Number: 8683
>Category: middle-end
>Synopsis: Small structs returned in registers are incorrectly justified
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 22 15:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Dave Anglin
>Release: gcc 3.3
>Organization:
>Environment:
hppa64-hp-hpux11*
>Description:
struct small { char c; };
struct small
foo ()
{
struct small s = { 1 };
return s;
}
The value s is returned right justified contrary to the
ABI.
This causes an interoperability problem with code compiled
with the HP compiler.
>How-To-Repeat:
>Fix:
A PARALLEL needs to be used for the return value to
achieve the correct justification of small aggregates.
>Release-Note:
>Audit-Trail:
>Unformatted: