diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-02-04 19:43:51 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-02-04 19:43:51 +0000 |
commit | bb8541b9c4e5fd33d0b2a2271a060ece41c708ee (patch) | |
tree | ee6d5a97a03ca013498c9a8312888c4265c0327b /bfd | |
parent | 57b592a36d52809bbd3da9e517fabd2500cd7ee6 (diff) | |
download | gdb-bb8541b9c4e5fd33d0b2a2271a060ece41c708ee.zip gdb-bb8541b9c4e5fd33d0b2a2271a060ece41c708ee.tar.gz gdb-bb8541b9c4e5fd33d0b2a2271a060ece41c708ee.tar.bz2 |
bfd/
2008-02-04 Kai Tietz <kai.tietz@onevision.com>
H.J. Lu <hongjiu.lu@intel.com>
PR 5715
* warning.m4: Enable -Wno-format by default when using gcc on
mingw.
* configure: Regenerated.
binutils/
2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR 5715
* configure: Regenerated.
gas/
2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR 5715
* configure: Regenerated.
ld/
2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR 5715
* configure: Regenerated.
opcodes/
2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
PR 5715
* configure: Regenerated.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 8 | ||||
-rwxr-xr-x | bfd/configure | 10 | ||||
-rw-r--r-- | bfd/warning.m4 | 10 |
3 files changed, 28 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 07a52ec..4bf8ef7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2008-02-04 Kai Tietz <kai.tietz@onevision.com> + H.J. Lu <hongjiu.lu@intel.com> + + PR 5715 + * warning.m4: Enable -Wno-format by default when using gcc on + mingw. + * configure: Regenerated. + 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> * archures.c: Update copyright. diff --git a/bfd/configure b/bfd/configure index c15a118..bd532e3 100755 --- a/bfd/configure +++ b/bfd/configure @@ -10609,6 +10609,16 @@ echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} esac fi; +# Enable -Wno-format by default when using gcc on mingw +case "${host}" in + *-*-mingw32*) + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" + fi + ;; + *) ;; +esac + # Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then ERROR_ON_WARNING=yes diff --git a/bfd/warning.m4 b/bfd/warning.m4 index b366cad..0b0bf2f 100644 --- a/bfd/warning.m4 +++ b/bfd/warning.m4 @@ -11,6 +11,16 @@ AC_ARG_ENABLE(werror, *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;; esac]) +# Enable -Wno-format by default when using gcc on mingw +case "${host}" in + *-*-mingw32*) + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" + fi + ;; + *) ;; +esac + # Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then ERROR_ON_WARNING=yes |