This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC viciously beaten by ICC in trig test!
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: roger at eyesopen dot com
- Cc: coyote at coyotegulch dot com, gcc at gcc dot gnu dot org
- Date: Sun, 14 Mar 2004 21:40:42 -0500 (EST)
- Subject: Re: GCC viciously beaten by ICC in trig test!
- References: <Pine.LNX.4.44.0403141713460.12909-100000@www.eyesopen.com>
> 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.
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu