This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 mingw]: Add multilib support for i?86-w64-mingw32 target


2009/9/12 Kai Tietz <ktietz70@googlemail.com>:
> Hello,
>
> this patch enables the build of the i?86-w64-mingw32 target for
> multilib version. Additional it fixes for the x86_64-*-mingw32 target
> the used hwint and the use_long_long_for_widest_fast_int. I added to
> cygwin host configuration in config.host the
> use_long_long_for_widest_fast_int, too. If there are objections about
> this please let me know (I'll remove it). But as far as I could see,
> it should cause any penalties for cygwin.
>
> ChangeLog
>
> Changelog libtool
>
> 2009-09-12 ?Kai Tietz ?<kai.tietz@onevision.com>
>
> ? ? ? ?* configure.ac: Set for i?86-w64-mingw*
> ? ? ? ?need_64bit_hwint to yes.
> ? ? ? ?* configure: Regenerated.
>
>
> ChangeLog gcc
>
> 2009-09-12 ?Kai Tietz ?<kai.tietz@onevision.com>
>
> ? ? ? ?* config.gcc (tm_file): Remove i386/biarch32.h
> ? ? ? ?for i?86-w64-mingw* case.
> ? ? ? ?(i?86-*-mingw* andx86_64-*-mingw*): Add multilib
> ? ? ? ?support.
> ? ? ? ?* config.host: Set for cygwin and x86/x64 mingw the
> ? ? ? ?option use_long_long_for_widest_fast_int to yes.
>
>
> Tested for i686-pc-cygwin, i686-pc-mingw32, i686-w64-mingw32, and
> x86_64-pc-mingw32,
>
> Is this patch ok for apply to trunk?

This is the patch for 4.4.2 branch.

2009-09-13  Kai Tietz  <kai.tietz@onevision.com>

	* config.gcc (i?86-*-mingw* andx86_64-*-mingw*): Set
	need_64bit_hwint for x64 case to yes.
	* config.host: Set for x86/x64 mingw the
	option use_long_long_for_widest_fast_int to yes.

Tested for i686-pc-mingw32 and for x86_64-pc-mingw64.

Is this patch ok for apply to 4.4 branch?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
Index: gcc/gcc/config.gcc
===================================================================
--- gcc.orig/gcc/config.gcc	2009-04-19 17:22:52.000000000 +0200
+++ gcc/gcc/config.gcc	2009-09-13 11:56:10.491482600 +0200
@@ -1262,6 +1262,13 @@
 i[34567]86-*-mingw* | x86_64-*-mingw*)
 	tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
 	xm_file=i386/xm-mingw32.h
+	case ${target} in
+		x86_64-*-*)
+			need_64bit_hwint=yes
+			;;
+		*)
+			;;
+	esac
 	# This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
 	if test x$sjlj = x0; then
 		tmake_eh_file="i386/t-dw2-eh"
Index: gcc/gcc/config.host
===================================================================
--- gcc.orig/gcc/config.host	2009-03-31 17:28:14.000000000 +0200
+++ gcc/gcc/config.host	2009-09-13 11:56:59.348482600 +0200
@@ -204,6 +204,7 @@
     host_exeext=.exe
     ;;
   i[34567]86-*-mingw32* | x86_64-*-mingw*)
+    use_long_long_for_widest_fast_int=yes
     host_xm_file=i386/xm-mingw32.h
     host_xmake_file="${host_xmake_file} i386/x-mingw32"
     host_exeext=.exe

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