This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA/C] Break out C options into a separate file
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, toa at pop dot agri dot ch
- Date: Sun, 1 Jun 2003 17:50:57 +0100
- Subject: Re: [RFA/C] Break out C options into a separate file
- References: <20030520221643.GB32072@daikokuya.co.uk> <Pine.LNX.4.53.0305210939320.16803@kern.srcf.societies.cam.ac.uk> <20030522195154.GA6157@daikokuya.co.uk> <3ED9AAC3.9000102@pop.agri.ch> <20030601132012.GC743@daikokuya.co.uk> <200306011526.LAA23364@caip.rutgers.edu>
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.