Re: Bug fix for glibc broke freebsd build in REL_11_STABLE
Andrew Gierth <andrew@tao11.riddles.org.uk>
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, Victor Wagner <vitus@wagner.pp.ru>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-09-05T00:47:52Z
Lists: pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes: >> I kinda wonder if we should add -mno-x87 or such in configure when >> we detect clang, obviously it doesn't deal correctly with this. Tom> Seems worth looking into, but what happens if someone tries to Tom> compile for x87 hardware? Or do we care anymore? Already discussed this one on IRC with Andres, but to put this on record for future reference: we can't use -mno-x87 on 32bit intel, even with an -march= option with an SSE2 capable CPU, because the 32-bit ABI requires floats to be returned in the x87 registers and breaking that either results in silently wrong results or in clang dying with "fatal error: error in backend: X87 register return with X87 disabled" or similar. -- Andrew (irc:RhodiumToad)
Commits
-
Error out for clang on x86-32 without SSE2 support, no -fexcess-precision.
- 978515df2278 9.3.25 landed
- 29196e13cd70 9.4.20 landed
- dbbc98a9ef67 9.5.15 landed
- e553997e3f59 9.6.11 landed
- 1b8f09dbd352 10.6 landed
- 84f14fb78852 11.0 landed
- bd1463e348fc 12.0 landed
-
Fix 8a934d677 for libc++ and make more include order resistant.
- 1f349aa7d9a6 11.0 cited