This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR 5715: Binutils is broken on 32bit mingw host for 64bit target


On Mon, Feb 04, 2008 at 11:39:35AM -0800, H.J. Lu wrote:
> I am applying this patch as an obvious fix. I will check if gdb needs
> update.
> 
> 
> H.J.
> ---
> 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.
> 	

gdb is ok. I missed gprof. I am checking it in now.

H.J.
---
2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR 5715
	* configure: Regenerated.

--- gprof/configure.ll	2007-10-26 09:49:55.000000000 -0700
+++ gprof/configure	2008-02-04 11:56:33.000000000 -0800
@@ -11222,6 +11222,16 @@ echo "$as_me: error: bad value ${enablev
    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]