Makefile.in (INTERNAL_CFLAGS): Add SCHED_CFLAGS.

Jim Wilson wilson@cygnus.com
Thu Dec 17 13:05:00 GMT 1998


I have checked in this patch to fix a canadian-cross build problem.
If the target uses the haifa scheduler, and you build gcc using a
canadian-cross build procedure, then genattrtab.c gets compiled without
the -DSCHED option.  The result is a compiler that schedules instructions
differently than it should because insn-attrtab.c is wrong.  This problem
happens because build-make can't use ALL_CFLAGS because it contains X_CFLAGS,
but build-make was missing SCHED_CFLAGS.  I moved SCHED_CFLAGS into
INTERNAL_CFLAGS to fix this.

Thu Dec 17 12:31:12 1998  Jim Wilson  <wilson@cygnus.com>

	* Makefile.in (INTERNAL_CFLAGS): Add SCHED_CFLAGS.
	(ALL_CFLAGS): Delete SCHED_CFLAGS.

Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.205
diff -p -r1.205 Makefile.in
*** Makefile.in	1998/12/16 20:53:01	1.205
--- Makefile.in	1998/12/17 20:31:23
*************** all: all.indirect
*** 530,540 ****
  all.indirect: $(ALL)
  
  # IN_GCC tells various files that system.h, toplev.c, etc are available.
! INTERNAL_CFLAGS = $(CROSS) -DIN_GCC @extra_c_flags@
  
  # This is the variable actually used when we compile.
  ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) \
! 	@DEFS@ $(SCHED_CFLAGS)
  
  # Likewise.
  ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
--- 530,542 ----
  all.indirect: $(ALL)
  
  # IN_GCC tells various files that system.h, toplev.c, etc are available.
! INTERNAL_CFLAGS = $(CROSS) -DIN_GCC $(SCHED_CFLAGS) @extra_c_flags@
  
  # This is the variable actually used when we compile.
+ # If you change this line, you probably also need to change the definition
+ # of HOST_CFLAGS in build-make to match.
  ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) \
! 	@DEFS@
  
  # Likewise.
  ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)




More information about the Gcc-patches mailing list