This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

middle-end/8683: Small structs returned in registers are incorrectly justified


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]