aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-10 21:50:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-10 21:50:40 +0000
commit77f5afc306f280ec18c5ea41ebca932cfcf3f6b2 (patch)
tree11cb8c3a730c778acd223b416c3fc57b03f680e4 /src/backend/commands/async.c
parent8576a078430289f12fe91bfa595daf34325f62cc (diff)
downloadpostgresql-77f5afc306f280ec18c5ea41ebca932cfcf3f6b2.tar.gz
postgresql-77f5afc306f280ec18c5ea41ebca932cfcf3f6b2.zip
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 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions