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 15:42:48 +0000
- Subject: Re: gcc 4.x and support of x87 FPU in libstdc++
- Authentication-results: sourceware.org; auth=none
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
When I tried supplying "--with-fpmath=387" instead, I came across the
problem that was in my original question.
On 12 January 2014 02:57, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sat, Jan 11, 2014 at 6:54 PM, Denis K <deniskravtsov@gmail.com> wrote:
>> Hello,
>>
>> I've been trying to compile gcc 4.5.4 from the sources using
>> --with-fpmath=387 but I'm getting this error: "Invalid
>> --with-fpmath=387". I looked in the configs and found that it doesn't
>> support this option:
>>
>> 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
>>
>> Basically, I started this whole thing because I need to supply a
>> statically linked executable for an old target platform (in fact, it's
>> an old Celeron but without any SSE2 instructions that are apparently
>> used by libstdc++ by DEFAULT). The executable crashes at the first
>
> How did you configure GCC?
>
>
> --
> H.J.