aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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
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')
-rw-r--r--gcc/config/i386/mingw-w64.h34
-rw-r--r--gcc/config/i386/mingw-w64.opt23
-rw-r--r--gcc/config/i386/t-mingw-w645
3 files changed, 62 insertions, 0 deletions
diff --git a/gcc/config/i386/mingw-w64.h b/gcc/config/i386/mingw-w64.h
new file mode 100644
index 0000000..9a2b32e
--- /dev/null
+++ b/gcc/config/i386/mingw-w64.h
@@ -0,0 +1,34 @@
+/* Operating system specific defines to be used when targeting GCC for
+ hosting on Windows 32/64 via mingw-w64 runtime, using GNU tools and
+ the Windows API Library.
+ Copyright (C) 2009,
+ 2009 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+/* Enable -municode feature. */
+
+#undef CPP_SPEC
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \
+ %{municode:-DUNICODE}"
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
+ %{!shared:%{!mdll:%{!municode:crt2%O%s}}} \
+ %{!shared:%{!mdll:%{municode:crt2u%O%s}}} \
+ %{pg:gcrt2%O%s} \
+ crtbegin.o%s"
diff --git a/gcc/config/i386/mingw-w64.opt b/gcc/config/i386/mingw-w64.opt
new file mode 100644
index 0000000..965f4c0
--- /dev/null
+++ b/gcc/config/i386/mingw-w64.opt
@@ -0,0 +1,23 @@
+; MinGW-w64-specific options.
+
+; Copyright (C) 2009 Free Software Foundation, Inc.
+;
+; This file is part of GCC.
+;
+; GCC is free software; you can redistribute it and/or modify it under
+; the terms of the GNU General Public License as published by the Free
+; Software Foundation; either version 3, or (at your option) any later
+; version.
+;
+; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+; WARRANTY; without even the implied warranty of MERCHANTABILITY or
+; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+; for more details.
+;
+; You should have received a copy of the GNU General Public License
+; along with GCC; see the file COPYING3. If not see
+; <http://www.gnu.org/licenses/>.
+
+municode
+Target
+Use unicode startup and define UNICODE macro
diff --git a/gcc/config/i386/t-mingw-w64 b/gcc/config/i386/t-mingw-w64
new file mode 100644
index 0000000..bfe1506
--- /dev/null
+++ b/gcc/config/i386/t-mingw-w64
@@ -0,0 +1,5 @@
+# Match SYSTEM_INCLUDE_DIR
+NATIVE_SYSTEM_HEADER_DIR = /mingw/include
+
+# MinGW-specific parts of LIB_SPEC
+SHLIB_LC = -lmingw32 -lmingwex -lmoldname -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32