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]

gcc PATCH: Makefile bison args


Hi,
attached is a patch to egcs/gcc/Makefile.in. The c-parse.c rule has bison's
arguments in the wrong order. On linux, bison 1.25 says,
bison: extra arguments ignored after 'c-parse.y'
this patch corrects that. Other bison rules are ok.

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
      You can up the bandwidth, but you can't up the speed of light      
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk
Fri Apr 16 12:35:32 BST 1999  Nathan Sidwell  <nathan@acm.org>

	* Make-lang.in (c-parse.c): Put BISON parameters in correct
	order.

Index: egcs/gcc/Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.258
diff -c -3 -p -r1.258 Makefile.in
*** Makefile.in	1999/04/13 09:43:27	1.258
--- Makefile.in	1999/04/16 11:34:31
*************** c-parse.o : $(srcdir)/c-parse.c $(CONFIG
*** 1316,1322 ****
  	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
  $(srcdir)/c-parse.h: $(srcdir)/c-parse.c
  $(srcdir)/c-parse.c: $(srcdir)/c-parse.y
! 	cd $(srcdir); $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  $(srcdir)/c-parse.y: c-parse.in
  	echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
  	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
--- 1316,1322 ----
  	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
  $(srcdir)/c-parse.h: $(srcdir)/c-parse.c
  $(srcdir)/c-parse.c: $(srcdir)/c-parse.y
! 	cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o c-parse.c c-parse.y
  $(srcdir)/c-parse.y: c-parse.in
  	echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
  	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \

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