1. 12 Mar, 2008 7 commits
  2. 11 Mar, 2008 32 commits
  3. 10 Mar, 2008 1 commit
    • Tom Lane's avatar
      Use -fwrapv in CFLAGS if we are using a version of gcc that accepts this flag. · fe83a3fd
      Tom Lane authored
      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.
      fe83a3fd