Created
April 26, 2012 21:53
-
-
Save 7shi/2503493 to your computer and use it in GitHub Desktop.
gcc-3.0.4でalpha-winntをビルドするためのパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur gcc-3.0.4.orig/gcc/Makefile.in gcc-3.0.4/gcc/Makefile.in | |
--- gcc-3.0.4.orig/gcc/Makefile.in 2001-11-19 09:46:43 +0900 | |
+++ gcc-3.0.4/gcc/Makefile.in 2012-04-29 16:12:22 +0900 | |
@@ -433,7 +433,7 @@ | |
EXTRA_PASSES =@extra_passes@ | |
# Like EXTRA_PASSES, but these are used when linking. | |
-EXTRA_PROGRAMS = @extra_programs@ | |
+#EXTRA_PROGRAMS = @extra_programs@ | |
# List of extra object files that should be compiled for this target machine. | |
# The rules for compiling them should be in the t-* file for the machine. | |
@@ -981,8 +981,8 @@ | |
# This is what to compile if making a cross-compiler. | |
# Note that we can compile enquire using the cross-compiler just built, | |
# although we can't run it on this machine. | |
-all.cross: native gcc-cross cpp$(exeext) specs \ | |
- $(LIBGCC) $(LIBGCC1_TEST) $(EXTRA_PARTS) lang.all.cross doc | |
+all.cross: native gcc-cross cpp$(exeext) cpp0$(exeext) specs \ | |
+ $(EXTRA_PARTS) lang.all.cross doc | |
# This is what to compile if making gcc with a cross-compiler. | |
all.build: native xgcc$(exeext) cpp$(exeext) $(EXTRA_PARTS) lang.all.build | |
# This is what must be made before installing GCC and converting libraries. | |
@@ -2519,7 +2519,7 @@ | |
# Copy the compiler files into directories where they will be run. | |
# Install the driver last so that the window when things are | |
# broken is small. | |
-install-normal: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \ | |
+install-normal: install-common $(INSTALL_HEADERS) \ | |
$(INSTALL_CPP) install-man install-info intl.install \ | |
lang.install-normal install-driver | |
diff -ur gcc-3.0.4.orig/gcc/config.gcc gcc-3.0.4/gcc/config.gcc | |
--- gcc-3.0.4.orig/gcc/config.gcc 2002-02-15 23:42:53 +0900 | |
+++ gcc-3.0.4/gcc/config.gcc 2012-04-29 15:50:55 +0900 | |
@@ -520,9 +520,9 @@ | |
thread_file='vxworks' | |
;; | |
alpha*-*-winnt*) | |
- tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" | |
+ tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h" | |
xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" | |
- tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee" | |
+ tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee i386/t-mingw32" | |
xmake_file=winnt/x-winnt | |
extra_host_objs=oldnames.o | |
extra_gcc_objs="spawnv.o oldnames.o" | |
diff -ur gcc-3.0.4.orig/gcc/gcc.c gcc-3.0.4/gcc/gcc.c | |
--- gcc-3.0.4.orig/gcc/gcc.c 2002-01-03 06:03:39 +0900 | |
+++ gcc-3.0.4/gcc/gcc.c 2012-04-27 01:14:08 +0900 | |
@@ -266,7 +266,7 @@ | |
static void add_preprocessor_option PARAMS ((const char *, int)); | |
static void add_assembler_option PARAMS ((const char *, int)); | |
static void add_linker_option PARAMS ((const char *, int)); | |
-static void process_command PARAMS ((int, const char *const *)); | |
+static void process_command PARAMS ((int, const char */*const*/ *)); | |
static int execute PARAMS ((void)); | |
static void clear_args PARAMS ((void)); | |
static void fatal_error PARAMS ((int)); | |
@@ -3004,7 +3004,7 @@ | |
static void | |
process_command (argc, argv) | |
int argc; | |
- const char *const *argv; | |
+ const char */*const*/ *argv; | |
{ | |
register int i; | |
const char *temp; | |
diff -ur gcc-3.0.4.orig/gcc/system.h gcc-3.0.4/gcc/system.h | |
--- gcc-3.0.4.orig/gcc/system.h 2001-03-16 04:02:01 +0900 | |
+++ gcc-3.0.4/gcc/system.h 2012-04-29 14:54:37 +0900 | |
@@ -273,7 +273,7 @@ | |
extern void free PARAMS ((PTR)); | |
#endif | |
-#if defined (HAVE_DECL_GETCWD) && !HAVE_DECL_GETCWD | |
+#if defined (HAVE_DECL_GETCWD) && !HAVE_DECL_GETCWD && !defined (__MINGW32__) | |
extern char *getcwd PARAMS ((char *, size_t)); | |
#endif | |
@@ -534,7 +534,7 @@ | |
#endif | |
/* GCC now gives implicit declaration warnings for undeclared builtins. */ | |
-#if defined(__GNUC__) && defined (__SIZE_TYPE__) | |
+#if defined(__GNUC__) && defined (__SIZE_TYPE__) && !defined (__MINGW32__) | |
extern void *alloca (__SIZE_TYPE__); | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment