Floating Pt. Optimize on PA

Michael Hayes m.hayes@elec.canterbury.ac.nz
Wed Dec 30 23:26:00 GMT 1998


Jeffrey A Law writes:
 > union blah
 > {
 >   double d;
 >   int x[2];
 > };
 > 
 > 
 > GCC will keep reads/writes consistent in such unions, even though ANSI does
 > not mandate such consistency.

The c4x target hides behind the undefined bailout clause ANSI provides
in this case.  Some really nasty hacks were required to make unions
such as this behave as most people expect for the c4x, so I pulled
them out.

Unfortunately, a number of C libraries use this construct for pulling
apart floating point numbers.


Michael.




More information about the Gcc-bugs mailing list