subreg question

Joe Buck jbuck@synopsys.COM
Thu Dec 13 14:57:00 GMT 2001


> > The C standard's aliasing rules.  *((float *)&z) is an object of type
> > float; double is a different type than float; z is an object of type
> > double; *((float *)&z) and z can not alias.
> 
> agreed.  be that as it may dale, if the compiler is crashing, it's a
> bug, so it needs to be fixed :)

Right.  The compiler must not crash for any input whatsoever, no matter
how nonstandard, otherwise it's a bug, and a rather severe one at that.
And this is the type of non-standardness that our users are likely to
feed to us, since the C aliasing rules are not widely known about even
by experienced C programmers.





More information about the Gcc mailing list