diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 18:02:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 18:09:02 -0400 |
commit | c5b349e1c593031c200abc4b6f6e759af34e5b02 (patch) | |
tree | 997e548dbd24b8210cd0d7dd4cbf99724eef6ae6 | |
parent | 952170707bb525babcd48f6e907512e36a4982ca (diff) | |
download | gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.zip gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.tar.gz gdb-c5b349e1c593031c200abc4b6f6e759af34e5b02.tar.bz2 |
sim: ppc: enable -Wno-format for mingw targets
This mirrors what we do for other builds already.
-rw-r--r-- | sim/ppc/ChangeLog | 5 | ||||
-rwxr-xr-x | sim/ppc/configure | 3 | ||||
-rw-r--r-- | sim/ppc/configure.ac | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 501b9f8..fcd74c6 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,5 +1,10 @@ 2021-05-29 Mike Frysinger <vapier@gentoo.org> + * configure.ac (WERROR_CFLAGS): Add -Wno-format for mingw32 hosts. + * configure: Regenerate. + +2021-05-29 Mike Frysinger <vapier@gentoo.org> + * emul_generic.c (emul_write_status): Rename errno to err. (emul_write2_status): Likewise. * emul_generic.h (emul_write_status, emul_write2_status): Likewise. diff --git a/sim/ppc/configure b/sim/ppc/configure index 235595b..1c2cfda 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -4778,6 +4778,9 @@ WERROR_CFLAGS="" if test "${ERROR_ON_WARNING}" = yes ; then WERROR_CFLAGS="-Werror" fi +case "${host}" in + *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;; +esac # Check whether --enable-sim-warnings was given. diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 21913a9..9bd0ab7 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -602,6 +602,11 @@ WERROR_CFLAGS="" if test "${ERROR_ON_WARNING}" = yes ; then WERROR_CFLAGS="-Werror" fi +dnl Enable -Wno-format by default when using gcc on mingw since many +dnl GCC versions complain about %I64. +case "${host}" in + *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;; +esac AC_SUBST(WERROR_CFLAGS) AC_ARG_ENABLE(sim-warnings, |