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

Re: Floating Pt. Optimize on PA


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.



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