PATCH: eliminate more warnings

Andrew Pinski Andrew_Pinski@playstation.sony.com
Thu Dec 18 04:53:00 GMT 2008


On Wed, Dec 17, 2008 at 8:32 PM, Ben Elliston <bje@au1.ibm.com> wrote:
> This patch eliminates a few more warnings (in fp-bit and in the SPU
> backend).  Tested with a testsuite run on spu-elf, no regressions.
>
> Okay for the trunk?

>  __multi3 (TItype l, TItype r)
>  {
> +  union {
> +    qword *q;
> +    TItype *t;
> +  } qword_ti_union;
...
> +  qword_ti_union.q = &total;
> +  return *qword_ti_union.t;

You are using the union incorrectly.  You should use qword/TItype as
the types rather than the pointer types.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list