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: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Victor Wagner <vitus@wagner.pp.ru>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-09-04T22:06:07Z
Lists: pgsql-hackers
>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:

 Andrew> Specifying a recent microarch makes it use 64-bit FP registers
 Andrew> rather than 80-bit ones:

 Andrew> cc -O2 -m32 -march=skylake flttst.c && ./a.out
 Andrew> r1 = 1, r2 = 1

where "recent" means "since about 2000 or so":

cc -O2 -m32 -march=pentium4 flttst.c && ./a.out
r1 = 1, r2 = 1

(the actual requirement is for SSE2 support)

-- 
Andrew (irc:RhodiumToad)


Commits

  1. Error out for clang on x86-32 without SSE2 support, no -fexcess-precision.

  2. Fix 8a934d677 for libc++ and make more include order resistant.