This is the mail archive of the gcc@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]

Re: Returning unions (Was: Re: Ping^5: Re: Updated^2: RFA: Fix middle-end/46500 (void * encapsulated))


Quoting "H.J. Lu" <hjl.tools@gmail.com>:

Do you have a testcase for i386?

struct args { int i0, i1; };


union args_u { struct args *a; } __attribute__((transparent_union));

union args_u
f (union args_u in)
{
  union args_u out;

out.a = in.a + 1;

  return out;
}


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