On Wed, 23 Nov 2016, Segher Boessenkool wrote:
> > --- gcc/testsuite/gcc.c-torture/compile/20161123-1.c (nonexistent)
> > +++ gcc/testsuite/gcc.c-torture/compile/20161123-1.c (working copy)
> > @@ -0,0 +1,7 @@
> > +double
> > +f (long double x)
> > +{
> > + union { long double ld; double d[2]; } u;
> > + u.ld = x;
> > + return u.d[1];
> > +}
>
> This is undefined behaviour with -mlong-double-64; do we care?
It's a compile test, which is clearly required to compile for all
architectures and ABIs, including the cases where it would read
uninitialized memory on execution.
--
Joseph S. Myers
[email protected]