This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [Itai Nahshon <nahshon@actcom.co.il>] RedHat-6.0 fails to compile with -ansi -pedantic


On Wed, May 26, 1999 at 08:40:29AM +0200, Andreas Jaeger wrote:
> -   union { float __f; int __i; } __u = { __f: __x }; return __u.__i < 0;
> +  union { float __f; int __i; } __u; __u.__f = __x; return __u.__i < 0;
[...]
> Comparing assembly output from compiling with both files does not give
> identical results. Maybe the egcs guys should take a look at that.

Unsurprising.  Constructors aren't implemented as efficiently
as direct member assignment.


r~

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