aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2009-04-21 16:41:14 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2009-04-21 18:41:14 +0200
commit350916301fe8afa02464e3ca84c70015ce2cf74b (patch)
treebbbb93739629f031cae75429fefb921b5c3f7c3f /gcc/config.gcc
parent0267afc48d8f1e520d850241b73d4d68a56278cf (diff)
downloadgcc-350916301fe8afa02464e3ca84c70015ce2cf74b.zip
gcc-350916301fe8afa02464e3ca84c70015ce2cf74b.tar.gz
gcc-350916301fe8afa02464e3ca84c70015ce2cf74b.tar.bz2
config.gcc: Add additional configuration for i686-w64-mingw* and x86_64-w64-mingw* triplet.
2009-04-21 Kai Tietz <kai.tietz@onevision.com> * config.gcc: Add additional configuration for i686-w64-mingw* and x86_64-w64-mingw* triplet. * config/i386/mingw-w64.h: New mingw-w64 specific header. (CPP_SPEC): Redefine for allowing -municode option. (STARTFILE_SPEC): Likewise. * config/i386/t-mingw-w64: New. * config/i386/mingw-w64.opt: New. (municode): Add new target option. * doc/invoke.texi (municode): Add documentation for new option. From-SVN: r146529
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc22
1 files changed, 20 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index a2c7032..d4d3889 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1251,17 +1251,35 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*)
use_gcc_stdint=wrap
;;
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 i386/mingw-stdint.h"
+ 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
+ # This makes the logic if mingw's or the w64 feature set has to be used
+ case ${target} in
+ *-w64-*)
+ tm_file="${tm_file} i386/mingw-w64.h"
+ tmake_file="${tmake_file} i386/t-mingw-w64"
+ ;;
+ *)
+ tmake_file="${tmake_file} i386/t-mingw32"
+ ;;
+ esac
+ tm_file="${tm_file} i386/mingw-stdint.h"
# 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"
else
tmake_eh_file="i386/t-sjlj-eh"
fi
- tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming i386/t-mingw32"
+ tmake_file="${tmake_file} ${tmake_eh_file} i386/t-cygming"
target_gtfiles="\$(srcdir)/config/i386/winnt.c"
extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
+ case ${target} in
+ *-w64-*)
+ extra_options="${extra_options} i386/mingw-w64.opt"
+ ;;
+ *)
+ ;;
+ esac
extra_objs="winnt.o winnt-stubs.o"
c_target_objs="${c_target_objs} msformat-c.o"
cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"