pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
7+ messages / 1 participants
[nested] [flat]

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bd1463e348fcf3a6e832092ccdeaecda2db9c117

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/84f14fb788523d5175fc9b5a11c36853a3697d32

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1b8f09dbd352cb2280ff6e7c8896db57a2d68f06

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e553997e3f59024664d19251df8f50066c7bbb7f

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dbbc98a9ef67b350caf1bf02ad549f238853faed

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/29196e13cd704930c174a3827e3aba7fedf06db9

Modified Files
--------------
configure    | 33 +++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 51 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess-
@ 2018-09-21 01:29  Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Andres Freund @ 2018-09-21 01:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

As clang currently doesn't support -fexcess-precision=standard,
compiling x86-32 code with SSE2 disabled, can lead to problems with
floating point overflow checks and the like.

This issue was noticed because clang, on at least some BSDs, defaults
to i386 compatibility, whereas it defaults to pentium4 on Linux.  Our
forced usage of __builtin_isinf() lead to some overflow checks not
triggering when compiling for i386, e.g. when the result of the
calculation didn't overflow in 80bit registers, but did so in 64bit.

While we could just fall back to a non-builtin isinf, it seems likely
that the use of 80bit registers leads to other problems (which is why
we force the flag for GCC already).  Therefore error out when
detecting clang in that situation.

Reported-By: Victor Wagner
Analyzed-By: Andrew Gierth and Andres Freund
Author: Andres Freund
Discussion: https://postgr.es/m/20180905005130.ewk4xcs5dgyzcy45@alap3.anarazel.de
Backpatch: 9.3-, all supported versions are affected

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/978515df2278f570837d3335909300e270081a9f

Modified Files
--------------
configure    | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 18 ++++++++++++++++++
2 files changed, 78 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2018-09-21 01:29 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>
2018-09-21 01:29 pgsql: Error out for clang on x86-32 without SSE2 support, no -fexcess- Andres Freund <andres@anarazel.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox