This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.x and support of x87 FPU in libstdc++
- From: Denis K <deniskravtsov at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Sun, 12 Jan 2014 17:36:57 +0000
- Subject: Re: gcc 4.x and support of x87 FPU in libstdc++
- Authentication-results: sourceware.org; auth=none
- References: <CAOCMtD4fEPbR0+vMpk1z2u7egSvhOntB-FrnYvv9Hd7zteuYvQ at mail dot gmail dot com> <CAMe9rOqrs19_s7D3YrSUPSDSsvpTa60E-eJHFF3BVMevV6_umg at mail dot gmail dot com>
Thank you, I think it worked (but I also patched ssemath.h locally, so
need to roll back and recompile again to make sure). Though I'm not
exactly sure why I didn't get an error from configure. I'm not very
familiar with the syntax used but I was thinking that
case ${with_fpmath} in
avx)
tm_file="${tm_file} i386/avxmath.h"
;;
sse)
tm_file="${tm_file} i386/ssemath.h"
;;
*)
echo "Invalid --with-fpmath=$with_fpmath" 1>&2
exit 1
Only allows for avx or sse and any other option should result in the
default case leading to a failure.
On 12 January 2014 15:50, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Jan 12, 2014 at 7:42 AM, Denis K <deniskravtsov@gmail.com> wrote:
>> My settings were taken from the comment here:
>> http://stackoverflow.com/questions/9450394/how-to-install-gcc-from-scratch-with-gmp-mpfr-mpc-elf-without-shared-librari
>>
>> --disable-shared
>> --disable-bootstrap
>> --disable-libstdcxx-pch
>> --enable-languages=all
>> --enable-libgomp
>> --enable-lto
>> --enable-threads=posix
>> --enable-tls
>> --with-gmp=/tmp/gcc
>> --with-mpfr=/tmp/gcc
>> --with-mpc=/tmp/gcc
>> --with-libelf=/tmp/gcc
>> --with-fpmath=sse
>>
>
> Please remove " --with-fpmath=sse".
>
>
> --
> H.J.