This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] libgcc variant (was: [PATCH] Optionally emit SSE ABI libm calls on x86)


On Mon, Jul 11, 2005 at 11:24:43AM -0700, Ian Lance Taylor wrote:
> I would recommend the following, while acknowledging that this is far
> from ideal (and that a few details may be wrong):
> 
> 1) Create a new project, libmsse.  The SC can decide whether it should
>    go into the gcc CVS tree.  Otherwise it could be hosted on
>    sourceware.org or savannah.gnu.org.
> 
> 2) The gcc configure script should check for the existence of libmsse.
> 
> 3) If libmsse exists on the target system, then x86 gcc with -msse is
>    free to rewrite calls to C99 standard math functions to call
>    libmsse functions instead (subject to -std= and
>    -fno-builtin-functions, etc.).
> 
> 4) As the library evolves over time to add new functions, the
>    configure checks will have to evolve accordingly to decide when
>    those functions may be called.

The compelling reason to distribute the new library with gcc is that
we no longer have to do any configure checks.  We can treat the whole
library as a set of compiler optimizations for sse code.


r~


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