fix libquadmath build regression

Alexandre Oliva aoliva@redhat.com
Sun Dec 30 00:13:00 GMT 2012


On Dec 24, 2012, Paolo Bonzini <bonzini@gnu.org> wrote:

> Il 21/12/2012 06:17, Alexandre Oliva ha scritto:
>> The problem is that glibc has an extern inline definition of
>> fraiseexcept that is introduced by including fenv.h (it's in
>> bits/fenv.h), and this definition requires SSE support regardless of
>> target arch of word width, so it doesn't work for an i686 native that
>> doesn't assume SSE registers and instructions are available.
>> 
>> This bug is fixed in newer versions of glibc, but I figured it wouldn't
>> hurt to have a work-around in place for libquadmath to build

> Would it be possible to fix it in fixincludes instead?

Heh, who'd have thought of using fixincludes to fix broken include
files? :-)  (hint: not me :-)  *blush*

Thanks for the suggestion, this patch fixes the problem.  Regstrapped on
x86_64-linux-gnu and i686-linux-gnu.  Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixinc-fenv-broken-feraiseexcept.patch
Type: text/x-diff
Size: 8832 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121230/1685a5cf/attachment.bin>
-------------- next part --------------


-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


More information about the Gcc-patches mailing list