GCC viciously beaten by ICC in trig test!

Andreas Jaeger aj@suse.de
Mon Mar 15 06:06:00 GMT 2004


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

>  > The issue is that glibc's headers provide inline implementations for
>  > sin and cos, and thereby override all of GCC's internal builtin
>  > processing.  Once this is done, there's nothing tree-ssa, the
>  > middle-end or the i386 can do to improve the code.  If GCC is to have
>  > a hope of using "sincos" or SSE2 specific instruction sequences, the
>  > "best intentions" of glibc's headers (will) have to be neutralized
>  > first.  Perhaps fixincludes :>
>
>
> Or you can pass -D__NO_INLINE__ on the command line.  I'm of the
> opinion that we should add that to GCC's specs for all glibc systems.
>
> We already do something analogous during bootstrap for GCC itself to
> disable all of the glibc string inlines.  I don't see why the rest of
> the world has to suffer through them when these things belong in the
> compiler anyway.

If all functions that glibc's header provide are implemented in GCC
(remember there was a time GCC didn't include any of these
optimizations and only glibc did), then I propose to get even rid of
them in glibc.  But for now there should still be a few functions
missing...

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040315/90660dae/attachment.sig>


More information about the Gcc mailing list