This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Floating Pt. Optimize on PA
- To: law at cygnus dot com
- Subject: Re: Floating Pt. Optimize on PA
- From: Michael Hayes <m dot hayes at elec dot canterbury dot ac dot nz>
- Date: Thu, 31 Dec 1998 19:48:29 +1300 (NZDT)
- Cc: egcs-bugs at cygnus dot com
- References: <"13959.64962.70266.111088"@cetus.cygnus.com><879.914987539@upchuck>
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.