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]

Remove version.h dependency from tree.h


gcc/tree.h includes version.h, but then makes no use of either of the
symbols in it. This patch removes the version.h include from tree.h, and
then adds it to any .c files which require it (many .c files using
symbols from version.h already included it).

Bootstrapped and tested on i686-linux with no new regressions.

gcc/ChangeLog:

2004-05-19 Mark G. Adams  <mark.g.adams@sympatico.ca>

	* tree.h: Remove include of version.h
	* c-cppbuiltin.c: Include version.h
	* diagnostic.c: Include version.h
	* dwarf2out.c: Include version.h
	* toplev.c: Include version.h
	* vmsdbgout.c: Include version.h
	* Makefile.in: Remove dependency on version.h from TREE_H, and
	add dependencies to required .o targets

gcc/java/ChangeLog:

2004-05-19 Mark G. Adams  <mark.g.adams@sympatico.ca>

	* gjavah.c: Include version.h

Index: gcc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1278
diff -c -3 -p -r1.1278 Makefile.in
*** gcc/Makefile.in	18 May 2004 17:32:52 -0000	1.1278
--- gcc/Makefile.in	19 May 2004 05:15:54 -0000
*************** MACHMODE_H = machmode.h mode-classes.def
*** 680,686 ****
  RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
  RTL_H = $(RTL_BASE_H) genrtl.h input.h statistics.h
  PARAMS_H = params.h params.def
! TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h version.h builtins.def \
            input.h statistics.h
  BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h $(PARTITION_H) \
            hard-reg-set.h cfghooks.h
--- 680,686 ----
  RTL_BASE_H = rtl.h rtl.def $(MACHMODE_H)
  RTL_H = $(RTL_BASE_H) genrtl.h input.h statistics.h
  PARAMS_H = params.h params.def
! TREE_H = tree.h tree.def $(MACHMODE_H) tree-check.h builtins.def \
            input.h statistics.h
  BASIC_BLOCK_H = basic-block.h bitmap.h sbitmap.h varray.h $(PARTITION_H) \
            hard-reg-set.h cfghooks.h
*************** c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM
*** 1404,1410 ****
  		$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
  
  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 \
  	output.h except.h real.h $(TM_P_H)
  
  # A file used by all variants of C and some other languages.
--- 1404,1410 ----
  		$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@
  
  c-cppbuiltin.o : c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
! 	$(TREE_H) version.h $(C_COMMON_H) c-pragma.h flags.h toplev.h langhooks.h \
  	output.h except.h real.h $(TM_P_H)
  
  # A file used by all variants of C and some other languages.
*************** fold-const.o : fold-const.c $(CONFIG_H) 
*** 1684,1690 ****
     $(TREE_H) flags.h real.h toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) $(GGC_H) \
     $(TM_P_H) langhooks.h $(MD5_H)
  diagnostic.o : diagnostic.c $(DIAGNOSTIC_H) real.h \
!    $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(TM_P_H) flags.h $(GGC_H) \
     input.h toplev.h intl.h langhooks.h $(LANGHOOKS_DEF_H)
  opts.o : opts.c opts.h options.h toplev.h $(CONFIG_H) $(SYSTEM_H) \
  	coretypes.h $(TREE_H) $(TM_H) langhooks.h $(GGC_H) $(RTL_H) \
--- 1684,1690 ----
     $(TREE_H) flags.h real.h toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) $(GGC_H) \
     $(TM_P_H) langhooks.h $(MD5_H)
  diagnostic.o : diagnostic.c $(DIAGNOSTIC_H) real.h \
!    $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) version.h $(TM_P_H) flags.h $(GGC_H) \
     input.h toplev.h intl.h langhooks.h $(LANGHOOKS_DEF_H)
  opts.o : opts.c opts.h options.h toplev.h $(CONFIG_H) $(SYSTEM_H) \
  	coretypes.h $(TREE_H) $(TM_H) langhooks.h $(GGC_H) $(RTL_H) \
*************** targhooks.o : targhooks.c targhooks.h $(
*** 1693,1699 ****
  	coretypes.h $(TREE_H) $(TM_H) $(RTL_H) $(TM_P_H) function.h \
  	output.h toplev.h
  
! toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
     function.h flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h $(DIAGNOSTIC_H) \
     debug.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h \
     dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
--- 1693,1699 ----
  	coretypes.h $(TREE_H) $(TM_H) $(RTL_H) $(TM_P_H) function.h \
  	output.h toplev.h
  
! toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) version.h $(RTL_H) \
     function.h flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h $(DIAGNOSTIC_H) \
     debug.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h \
     dwarf2out.h sdbout.h dbxout.h $(EXPR_H) hard-reg-set.h $(BASIC_BLOCK_H) \
*************** sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM
*** 1787,1800 ****
     output.h toplev.h $(TM_P_H) gsyms.h langhooks.h $(TARGET_H) sdbout.h \
     gt-sdbout.h
  dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
!    $(TREE_H) $(RTL_H) dwarf2.h debug.h flags.h insn-config.h reload.h \
     output.h $(DIAGNOSTIC_H) real.h hard-reg-set.h $(REGS_H) $(EXPR_H) \
     libfuncs.h toplev.h dwarf2out.h varray.h $(GGC_H) except.h dwarf2asm.h \
     $(TM_P_H) langhooks.h $(HASHTAB_H) gt-dwarf2out.h $(TARGET_H) cgraph.h \
     $(MD5_H) input.h
  dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) flags.h $(RTL_H) \
     $(TREE_H) output.h dwarf2asm.h $(TM_P_H) $(GGC_H) gt-dwarf2asm.h
! vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
     $(RTL_H) flags.h output.h vmsdbg.h debug.h langhooks.h function.h $(TARGET_H)
  xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
     xcoffout.h flags.h toplev.h output.h dbxout.h $(GGC_H) $(TARGET_H)
--- 1787,1800 ----
     output.h toplev.h $(TM_P_H) gsyms.h langhooks.h $(TARGET_H) sdbout.h \
     gt-sdbout.h
  dwarf2out.o : dwarf2out.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
!    $(TREE_H) version.h $(RTL_H) dwarf2.h debug.h flags.h insn-config.h reload.h \
     output.h $(DIAGNOSTIC_H) real.h hard-reg-set.h $(REGS_H) $(EXPR_H) \
     libfuncs.h toplev.h dwarf2out.h varray.h $(GGC_H) except.h dwarf2asm.h \
     $(TM_P_H) langhooks.h $(HASHTAB_H) gt-dwarf2out.h $(TARGET_H) cgraph.h \
     $(MD5_H) input.h
  dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) flags.h $(RTL_H) \
     $(TREE_H) output.h dwarf2asm.h $(TM_P_H) $(GGC_H) gt-dwarf2asm.h
! vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) version.h \
     $(RTL_H) flags.h output.h vmsdbg.h debug.h langhooks.h function.h $(TARGET_H)
  xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
     xcoffout.h flags.h toplev.h output.h dbxout.h $(GGC_H) $(TARGET_H)
Index: gcc/c-cppbuiltin.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/c-cppbuiltin.c,v
retrieving revision 1.19
diff -c -3 -p -r1.19 c-cppbuiltin.c
*** gcc/c-cppbuiltin.c	1 Apr 2004 03:50:26 -0000	1.19
--- gcc/c-cppbuiltin.c	19 May 2004 05:15:54 -0000
*************** Software Foundation, 59 Temple Place - S
*** 23,28 ****
--- 23,29 ----
  #include "coretypes.h"
  #include "tm.h"
  #include "tree.h"
+ #include "version.h"
  #include "flags.h"
  #include "real.h"
  #include "c-common.h"
Index: gcc/diagnostic.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/diagnostic.c,v
retrieving revision 1.137
diff -c -3 -p -r1.137 diagnostic.c
*** gcc/diagnostic.c	30 Apr 2004 05:29:22 -0000	1.137
--- gcc/diagnostic.c	19 May 2004 05:15:54 -0000
*************** Software Foundation, 59 Temple Place - S
*** 31,36 ****
--- 31,37 ----
  #include "coretypes.h"
  #include "tm.h"
  #include "tree.h"
+ #include "version.h"
  #include "tm_p.h"
  #include "flags.h"
  #include "input.h"
Index: gcc/dwarf2out.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.517
diff -c -3 -p -r1.517 dwarf2out.c
*** gcc/dwarf2out.c	13 May 2004 06:39:37 -0000	1.517
--- gcc/dwarf2out.c	19 May 2004 05:15:56 -0000
*************** Software Foundation, 59 Temple Place - S
*** 39,44 ****
--- 39,45 ----
  #include "coretypes.h"
  #include "tm.h"
  #include "tree.h"
+ #include "version.h"
  #include "flags.h"
  #include "real.h"
  #include "rtl.h"
Index: gcc/toplev.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.897
diff -c -3 -p -r1.897 toplev.c
*** gcc/toplev.c	13 May 2004 06:39:45 -0000	1.897
--- gcc/toplev.c	19 May 2004 05:15:56 -0000
*************** Software Foundation, 59 Temple Place - S
*** 43,48 ****
--- 43,49 ----
  #include "line-map.h"
  #include "input.h"
  #include "tree.h"
+ #include "version.h"
  #include "rtl.h"
  #include "tm_p.h"
  #include "flags.h"
Index: gcc/tree.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/tree.h,v
retrieving revision 1.493
diff -c -3 -p -r1.493 tree.h
*** gcc/tree.h	18 May 2004 02:53:55 -0000	1.493
--- gcc/tree.h	19 May 2004 05:15:56 -0000
*************** Software Foundation, 59 Temple Place - S
*** 23,29 ****
  #define GCC_TREE_H
  
  #include "machmode.h"
- #include "version.h"
  #include "input.h"
  #include "statistics.h"
  
--- 23,28 ----
Index: gcc/vmsdbgout.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/vmsdbgout.c,v
retrieving revision 1.35
diff -c -3 -p -r1.35 vmsdbgout.c
*** gcc/vmsdbgout.c	5 May 2004 07:31:05 -0000	1.35
--- gcc/vmsdbgout.c	19 May 2004 05:15:57 -0000
*************** Software Foundation, 59 Temple Place - S
*** 28,33 ****
--- 28,34 ----
  
  #ifdef VMS_DEBUGGING_INFO
  #include "tree.h"
+ #include "version.h"
  #include "flags.h"
  #include "rtl.h"
  #include "output.h"
Index: gcc/java/gjavah.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.114
diff -c -3 -p -r1.114 gjavah.c
*** gcc/java/gjavah.c	30 Apr 2004 18:14:07 -0000	1.114
--- gcc/java/gjavah.c	19 May 2004 11:39:13 -0000
*************** The Free Software Foundation is independ
*** 35,40 ****
--- 35,41 ----
  
  #include "jcf.h"
  #include "tree.h"
+ #include "version.h"
  #include "javaop.h"
  #include "java-tree.h"
  #include "java-opcodes.h"

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