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: [RFA/C] Break out C options into a separate file


Kaveh R. Ghazi wrote:-

>  > I've applied this.
>  > Neil.
>  > 	* opts.sh: Remove path from sort.
> 
> Neil, I'm having lots of problems with your new code.  Issues 3 & 4

Kaveh, can you try this?  I'm hoping it fixes everything for you except
the awk syntax error.  Is that caused by gsub?

Neil.

	* Makefile.in (c-options.c, c-options.h): Parallel make safe.
	* c.opt: End in blank line.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1059
diff -u -p -r1.1059 Makefile.in
--- Makefile.in	31 May 2003 21:18:20 -0000	1.1059
+++ Makefile.in	1 Jun 2003 16:49:09 -0000
@@ -1320,8 +1320,11 @@ c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM
 	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 		$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
 
-c-options.h c-options.c: c.opt $(srcdir)/opts.sh
+c-options.c: c.opt $(srcdir)/opts.sh
 	$(SHELL) $(srcdir)/opts.sh c-options.c c-options.h $(srcdir)/c.opt
+
+c-options.h: c-options.c
+	@true
 
 c-cppbuiltin.o : c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
 	$(TREE_H) $(C_COMMON_H) c-pragma.h flags.h toplev.h langhooks.h \
Index: c.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c.opt,v
retrieving revision 1.1
diff -u -p -r1.1 c.opt
--- c.opt	31 May 2003 21:18:21 -0000	1.1
+++ c.opt	1 Jun 2003 16:49:10 -0000
@@ -598,3 +598,5 @@ C ObjC C++ ObjC++
 
 w
 C ObjC C++ ObjC++
+
+; This comment is to ensure we retain the blank line above.


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