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: build regression


Neil Booth wrote:-

> 	* gcc.c (cpp_unique_options): Rewrite -MD and -MMD to append
> 	an underscore.
> 	* c-opts.c (missing_arg, c_common_handle_option): Rename
> 	OPT_MD and OPT_MMD to OPT_MD_ and OPT_MMD_.
> 	* c.opt: Take MD_ and MMD_ instead of MD and MMD.

Sadly this doesn't work as the Makefiles in java/ expect cc1 to
take an argument to -MD (grrr...).  I'm testing this instead.

Neil.

java:
	* lang-specs.h: Rewrite -MD and -MMD to append an underscore.
	* lang.c (java_handle_option): -MD and -MMD have an underscore.
	* lang.opt: -MD and -MMD have an underscore.

Index: java/lang-specs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang-specs.h,v
retrieving revision 1.21
diff -u -p -b -r1.21 lang-specs.h
--- java/lang-specs.h	1 Jan 2003 15:10:01 -0000	1.21
+++ java/lang-specs.h	14 Jun 2003 20:27:06 -0000
@@ -36,6 +36,6 @@ The Free Software Foundation is independ
     %{femit-class-file:%{!fsyntax-only:%e-femit-class-file should used along with -fsyntax-only}}\
     %{femit-class-files:%{!fsyntax-only:%e-femit-class-file should used along with -fsyntax-only}}\
     %{!E:jc1 %i %(jc1) %(cc1_options) %{+e*} %{I*}\
-             %{MD} %{MMD} %{M} %{MM} %{MA} %{MT*} %{MF*}\
+             %{MD:-MD_} %{MMD:-MMD_} %{M} %{MM} %{MA} %{MT*} %{MF*}\
              %{!fsyntax-only:%(invoke_as)}}", 0},
 
Index: java/lang.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang.c,v
retrieving revision 1.131
diff -u -p -b -r1.131 lang.c
--- java/lang.c	14 Jun 2003 12:26:36 -0000	1.131
+++ java/lang.c	14 Jun 2003 20:27:06 -0000
@@ -301,7 +301,7 @@ java_handle_option (size_t scode, const 
       dependency_tracking |= DEPEND_ENABLE;
       break;
 
-    case OPT_MD:
+    case OPT_MD_:
       jcf_dependency_init (1);
       dependency_tracking |= DEPEND_SET_FILE | DEPEND_ENABLE;
       break;
@@ -316,7 +316,7 @@ java_handle_option (size_t scode, const 
       dependency_tracking |= DEPEND_ENABLE;
       break;
 
-    case OPT_MMD:
+    case OPT_MMD_:
       jcf_dependency_init (0);
       dependency_tracking |= DEPEND_SET_FILE | DEPEND_ENABLE;
       break;
Index: java/lang.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/lang.opt,v
retrieving revision 1.1
diff -u -p -b -r1.1 lang.opt
--- java/lang.opt	9 Jun 2003 19:54:26 -0000	1.1
+++ java/lang.opt	14 Jun 2003 20:27:06 -0000
@@ -47,7 +47,7 @@ Java Joined
 M
 Java
 
-MD
+MD_
 Java
 
 MF
@@ -56,7 +56,7 @@ Java Separate
 MM
 Java
 
-MMD
+MMD_
 Java
 
 MP


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