summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-10 21:50:16 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-10 21:50:16 +0000
commitfe83a3fdbd91ee9c02e34987b47c4346d3c3e090 (patch)
tree5891866855c1e9c3239b7d0d28c620ba93153e4f /doc/src
parentf0828b2fc3d021ef8d64337a3593eb44bd3b6114 (diff)
Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag.
This prevents compiler optimizations that assume overflow won't occur, which breaks numerous overflow tests that we need to have working. It is known that gcc 4.3 causes problems and possible that 4.1 does. Per my proposal of some time ago and a recent report from Kris Jurka. Backpatch as far as 8.0, which is as far as the patch conveniently goes. 7.x was pretty short of overflow tests anyway, so it may not matter there, even assuming that anyone cares whether 7.x builds on recent gcc.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions