Ticket #449: nostrictaliaswith42.patch

File nostrictaliaswith42.patch, 708 bytes (added by Richard Boulton, 14 years ago)

Patch configure to add nostrictalias with gcc4.2

  • configure.ac

     
    982982        4.2)
    983983          dnl -Wstrict-overflow was new in GCC 4.2.  Higher settings than 1
    984984          dnl have proved too noisy.
    985           AM_CXXFLAGS="$AM_CXXFLAGS -Wshadow -Wstrict-overflow=1" ;;
     985          dnl Also, there appears to be a compiler bug which is apparent with
     986          dnl GCC 4.2 (but not 4.1 or 4.3) with -O2, which can be avoided by
     987          dnl specifying -fno-strict-aliasing.
     988          AM_CXXFLAGS="$AM_CXXFLAGS -Wshadow -Wstrict-overflow=1 -fno-strict-aliasing" ;;
    986989        *)
    987990          dnl -Wlogical-op and -Wmissing-declarations (for C++) were added in
    988991          dnl GCC 4.3.