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]

add multiple include guards


Howdy,

Per another suggestion on the Simple GCC projects page, the
following adds multiple include guards to most of the header files
in the gcc subdirectory.  I used the form

	__GCC_FILENAME_H__

as a guard, since it was the second most popular, the first being

	_FILENAME_H

which is also used by glibc, which the Simple GCC projects page
prohibits.

It bootstrapped on i686-pc-linux-gnu.

Matt

2001-02-21  Matt Kraai  <kraai@alumni.carnegiemellon.edu>

	* c-dump.h: Add multiple include guard.
	* conditions.h: Ditto.
	* convert.h: Ditto.
	* cselib.h: Ditto.
	* dbxout.h: Ditto.
	* dbxstclass.h: Ditto.
	* dwarf.h: Ditto.
	* dwarf2.h: Ditto.
	* dwarf2out.h: Ditto.
	* dwarfout.h: Ditto.
	* eh-common.h: Ditto.
	* expr.h: Ditto.
	* frame.h: Ditto.
	* function.h: Ditto.
	* gbl-ctors.h: Ditto.
	* gensupport.h: Ditto.
	* ggc.h: Ditto.
	* gsyms.h: Ditto.
	* halfpic.h: Ditto.
	* hash.h: Ditto.
	* input.h: Ditto.
	* integrate.h: Ditto.
	* intl.h: Ditto.
	* longlong.h: Ditto.
	* loop.h: Ditto.
	* output.h: Ditto.
	* recog.h: Ditto.
	* regs.h: Ditto.
	* reload.h: Ditto.
	* resource.h: Ditto.
	* scan.h: Ditto.
	* sched-int.h: Ditto.
	* sdbout.h: Ditto.
	* ssa.h: Ditto.
	* stack.h: Ditto.
	* tree.h: Ditto.
	* typeclass.h: Ditto.
	* xcoffout.h: Ditto.

Index: c-dump.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-dump.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 c-dump.h
*** c-dump.h	2000/11/10 16:29:34	1.1
--- c-dump.h	2001/02/21 21:54:29
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_C_DUMP_H__
+ #define __GCC_C_DUMP_H__ 1
+ 
  /* Flags used with queue functions.  */
  #define DUMP_NONE     0
  #define DUMP_BINFO    1
*************** extern void queue_and_dump_index 
*** 82,84 ****
--- 85,89 ----
    PARAMS ((dump_info_p, const char *, tree, int));
  extern void queue_and_dump_type 
    PARAMS ((dump_info_p, tree));
+ 
+ #endif /* __GCC_C_DUMP_H__ */
Index: conditions.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/conditions.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 conditions.h
*** conditions.h	1998/12/16 20:54:13	1.3
--- conditions.h	2001/02/21 21:54:29
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_CONDITIONS_H__
+ #define __GCC_CONDITIONS_H__ 1
+ 
  /* None of the things in the files exist if we don't use CC0.  */
  
  #ifdef HAVE_cc0
*************** extern CC_STATUS cc_status;
*** 116,118 ****
--- 119,123 ----
    CC_STATUS_MDEP_INIT)
  
  #endif
+ 
+ #endif /* __GCC_CONDITIONS_H__ */
Index: convert.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/convert.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 convert.h
*** convert.h	2000/06/24 19:26:42	1.5
--- convert.h	2001/02/21 21:54:29
*************** along with GNU CC; see the file COPYING.
*** 18,25 ****
--- 18,30 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_CONVERT_H__
+ #define __GCC_CONVERT_H__ 1
+ 
  extern tree convert_to_integer PARAMS ((tree, tree));
  extern tree convert_to_pointer PARAMS ((tree, tree));
  extern tree convert_to_real PARAMS ((tree, tree));
  extern tree convert_to_complex PARAMS ((tree, tree));
  extern tree convert_to_vector PARAMS ((tree, tree));
+ 
+ #endif /* __GCC_CONVERT_H__ */
Index: cselib.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cselib.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 cselib.h
*** cselib.h	2000/12/07 01:58:23	1.2
--- cselib.h	2001/02/21 21:54:29
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_CSELIB_H__
+ #define __GCC_CSELIB_H__ 1
+ 
  /* Describe a value.  */
  typedef struct cselib_val_struct
  {
*************** extern void cselib_finish		PARAMS ((void
*** 65,67 ****
--- 68,72 ----
  extern void cselib_process_insn		PARAMS ((rtx));
  extern int rtx_equal_for_cselib_p	PARAMS ((rtx, rtx));
  extern int references_value_p		PARAMS ((rtx, int));
+ 
+ #endif /* __GCC_CSELIB_H__ */
Index: dbxout.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxout.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 dbxout.h
*** dbxout.h	2000/02/29 23:33:48	1.7
--- dbxout.h	2001/02/21 21:54:29
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_DBXOUT_H__
+ #define __GCC_DBXOUT_H__ 1
+ 
  extern void dbxout_init 		PARAMS ((FILE *, const char *, tree));
  extern void dbxout_finish		PARAMS ((FILE *, const char *));
  
*************** extern int dbxout_syms			PARAMS ((tree))
*** 34,36 ****
--- 37,41 ----
  extern void dbxout_function		PARAMS ((tree));
  extern void dbxout_source_line		PARAMS ((FILE *, const char *, int));
  extern void dbxout_begin_function	PARAMS ((tree));
+ 
+ #endif /* __GCC_DBXOUT_H__ */
Index: dbxstclass.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dbxstclass.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 dbxstclass.h
*** dbxstclass.h	1998/12/16 20:54:53	1.3
--- dbxstclass.h	2001/02/21 21:54:29
***************
*** 2,7 ****
--- 2,10 ----
     This info is from the `Files Reference' manual for IBM's AIX version 3
     for the RS6000.  */
  
+ #ifndef __GCC_DBXSTCLASS_H__
+ #define __GCC_DBXSTCLASS_H__ 1
+ 
  #define C_GSYM		0x80
  #define C_LSYM		0x81
  #define C_PSYM		0x82
***************
*** 15,17 ****
--- 18,22 ----
  #define C_DECL		0x8c
  #define C_ENTRY		0x8d
  #define C_FUN		0x8e
+ 
+ #endif /* __GCC_DBXSTCLASS_H__ */
Index: dwarf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 dwarf.h
*** dwarf.h	2000/11/20 21:40:30	1.7
--- dwarf.h	2001/02/21 21:54:30
*************** along with GNU CC; see the file COPYING.
*** 22,27 ****
--- 22,30 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_DWARF_H__
+ #define __GCC_DWARF_H__ 1
+ 
  /* This file is derived from the DWARF specification (a public document)
     Revision 1.0.1 (April 8, 1992) developed by the UNIX International
     Programming Languages Special Interest Group (UI/PLSIG) and distributed
*************** enum dwarf_macinfo_record_type {
*** 317,319 ****
--- 320,324 ----
      MACINFO_define	= 'd',
      MACINFO_undef	= 'u'
  };
+ 
+ #endif /* __GCC_DWARF_H__ */
Index: dwarf2.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2.h,v
retrieving revision 1.16
diff -c -3 -p -r1.16 dwarf2.h
*** dwarf2.h	2000/08/29 00:29:25	1.16
--- dwarf2.h	2001/02/21 21:54:30
*************** along with GNU CC; see the file COPYING.
*** 22,27 ****
--- 22,30 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_DWARF2_H__
+ #define __GCC_DWARF2_H__ 1
+ 
  /* This file is derived from the DWARF specification (a public document)
     Revision 2.0.0 (July 27, 1993) developed by the UNIX International
     Programming Languages Special Interest Group (UI/PLSIG) and distributed
*************** enum dwarf_macinfo_record_type
*** 554,556 ****
--- 557,561 ----
      DW_MACINFO_end_file = 4,
      DW_MACINFO_vendor_ext = 255
    };
+ 
+ #endif /* __GCC_DWARF2_H__ */
Index: dwarf2out.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.h,v
retrieving revision 1.11
diff -c -3 -p -r1.11 dwarf2out.h
*** dwarf2out.h	2001/02/16 13:03:10	1.11
--- dwarf2out.h	2001/02/21 21:54:30
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_DWARF2OUT_H__
+ #define __GCC_DWARF2OUT_H__ 1
+ 
  extern void dwarf2out_init 		PARAMS ((FILE *, const char *));
  extern void dwarf2out_finish		PARAMS ((void));
  
*************** extern void debug_dwarf_die		PARAMS ((st
*** 41,43 ****
--- 44,48 ----
  extern void dwarf2out_set_demangle_name_func PARAMS ((const char *(*) (const char *)));
  extern void dwarf2out_abstract_function PARAMS ((tree));
  extern void dwarf2out_add_library_unit_info PARAMS ((const char *, const char *));
+ 
+ #endif /* __GCC_DWARF2OUT_H__ */
Index: dwarfout.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarfout.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 dwarfout.h
*** dwarfout.h	2000/11/08 02:18:00	1.7
--- dwarfout.h	2001/02/21 21:54:30
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_DWARFOUT_H__
+ #define __GCC_DWARFOUT_H__ 1
+ 
  extern void dwarfout_init 		PARAMS ((FILE *, const char *));
  extern void dwarfout_finish		PARAMS ((void));
  
*************** extern void dwarfout_begin_block	PARAMS 
*** 35,37 ****
--- 38,42 ----
  extern void dwarfout_end_block		PARAMS ((unsigned));
  
  extern void dwarfout_line		PARAMS ((const char *, unsigned));
+ 
+ #endif /* __GCC_DWARFOUT_H__ */
Index: eh-common.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/eh-common.h,v
retrieving revision 1.13
diff -c -3 -p -r1.13 eh-common.h
*** eh-common.h	2000/07/22 23:29:14	1.13
--- eh-common.h	2001/02/21 21:54:31
*************** You should have received a copy of the G
*** 17,22 ****
--- 17,24 ----
  along with this program; if not, write to the Free Software
  Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_EH_COMMON_H__
+ #define __GCC_EH_COMMON_H__ 1
  
  /* This file contains the structures required for the language
     independent exception handling model. Both the static compiler and
*************** enum exception_source_language
*** 159,162 ****
  
  #endif  /* EH_TABLE_LOOKUP */
  
! 
--- 161,164 ----
  
  #endif  /* EH_TABLE_LOOKUP */
  
! #endif /* __GCC_EH_COMMON_H__ */
Index: expr.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.h,v
retrieving revision 1.73
diff -c -3 -p -r1.73 expr.h
*** expr.h	2000/12/03 23:58:44	1.73
--- expr.h	2001/02/21 21:54:33
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_EXPR_H__
+ #define __GCC_EXPR_H__ 1
+ 
  /* The default branch cost is 1.  */
  #ifndef BRANCH_COST
  #define BRANCH_COST 1
*************** extern void do_jump_by_parts_greater_rtx
*** 1307,1309 ****
--- 1310,1314 ----
  extern void mark_seen_cases			PARAMS ((tree, unsigned char *,
  							 HOST_WIDE_INT, int));
  #endif
+ 
+ #endif /* __GCC_EXPR_H__ */
Index: frame.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/frame.h,v
retrieving revision 1.18
diff -c -3 -p -r1.18 frame.h
*** frame.h	2001/01/24 04:30:46	1.18
--- frame.h	2001/02/21 21:54:33
*************** along with GNU CC; see the file COPYING.
*** 20,25 ****
--- 20,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_FRAME_H__
+ #define __GCC_FRAME_H__ 1
  
  #ifndef DWARF_FRAME_REGISTERS
  #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
*************** void *__calc_caller_bsp (long, unsigned 
*** 285,287 ****
--- 287,290 ----
  void __copy_saved_reg_state (ia64_frame_state *, ia64_frame_state *);
  #endif   /* IA64_UNWIND_INFO  */
  
+ #endif /* __GCC_FRAME_H__ */
Index: function.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.h,v
retrieving revision 1.59
diff -c -3 -p -r1.59 function.h
*** function.h	2001/01/10 21:40:13	1.59
--- function.h	2001/02/21 21:54:34
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_FUNCTION_H__
+ #define __GCC_FUNCTION_H__ 1
  
  #if !defined(NULL_TREE) && !defined(tree)
  typedef union union_node *_function_tree;
*************** extern void init_function_once          
*** 604,606 ****
--- 606,610 ----
  #ifdef tree
  #undef tree
  #endif
+ 
+ #endif /* __GCC_FUNCTION_H__ */
Index: gbl-ctors.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gbl-ctors.h,v
retrieving revision 1.8
diff -c -3 -p -r1.8 gbl-ctors.h
*** gbl-ctors.h	2000/07/28 16:08:54	1.8
--- gbl-ctors.h	2001/02/21 21:54:34
*************** along with GNU CC; see the file COPYING.
*** 23,28 ****
--- 23,31 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_GBL_CTORS_H__
+ #define __GCC_GBL_CTORS_H__ 1
+ 
  /*	This file contains definitions and declarations of things
  	relating to the normal start-up-time invocation of C++
  	file-scope static object constructors.  These declarations
*************** do {									\
*** 81,83 ****
--- 84,87 ----
  } while (0) 
  #endif
  
+ #endif /* __GCC_GBL_CTORS_H__ */
Index: gensupport.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gensupport.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 gensupport.h
*** gensupport.h	2000/05/06 22:30:13	1.2
--- gensupport.h	2001/02/21 21:54:34
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_GENSUPPORT_H__
+ #define __GCC_GENSUPPORT_H__ 1
+ 
  struct obstack;
  extern struct obstack *rtl_obstack;
  
*************** extern rtx read_md_rtx		PARAMS ((int *, 
*** 26,28 ****
--- 29,33 ----
  
  extern void message_with_line	PARAMS ((int, const char *, ...))
       ATTRIBUTE_PRINTF_2;
+ 
+ #endif /* __GCC_GENSUPPORT_H__ */
Index: ggc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc.h,v
retrieving revision 1.34
diff -c -3 -p -r1.34 ggc.h
*** ggc.h	2001/02/20 05:49:06	1.34
--- ggc.h	2001/02/21 21:54:35
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  02111-1307, USA.  */
  
+ #ifndef __GCC_GGC_H__
+ #define __GCC_GGC_H__ 1
+ 
  #include "gansidecl.h"
  #include "varray.h"
  
*************** void ggc_print_common_statistics PARAMS 
*** 206,208 ****
--- 209,213 ----
  /* Print allocation statistics.  */
  extern void ggc_print_statistics PARAMS ((void));
  void stringpool_statistics PARAMS ((void));
+ 
+ #endif /* __GCC_GGC_H__ */
Index: gsyms.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gsyms.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 gsyms.h
*** gsyms.h	1998/12/16 20:56:35	1.3
--- gsyms.h	2001/02/21 21:54:35
***************
*** 1,6 ****
--- 1,9 ----
  /* For cross compilation, use the portable definitions from the COFF
     documentation.  */
  
+ #ifndef __GCC_GSYMS_H__
+ #define __GCC_GSYMS_H__ 1
+ 
  #define __GNU_SYMS__
  
  enum sdb_storage_class
*************** enum sdb_masks
*** 84,86 ****
--- 87,91 ----
  #endif
    N_TSHIFT = 2
  };
+ 
+ #endif /* __GCC_GSYMS_H__ */
Index: halfpic.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/halfpic.h,v
retrieving revision 1.10
diff -c -3 -p -r1.10 halfpic.h
*** halfpic.h	2000/02/26 13:50:42	1.10
--- halfpic.h	2001/02/21 21:54:35
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_HALFPIC_H__
+ #define __GCC_HALFPIC_H__ 1
+ 
  #ifndef NO_HALF_PIC
  
  #ifdef ANSI_PROTOTYPES
*************** extern void half_pic_finish (/* FILE * *
*** 69,71 ****
--- 72,76 ----
  #endif
  
  #endif /* NO_HALF_PIC */
+ 
+ #endif /* __GCC_HALFPIC_H__ */
Index: hash.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/hash.h,v
retrieving revision 1.10
diff -c -3 -p -r1.10 hash.h
*** hash.h	2001/02/04 22:44:00	1.10
--- hash.h	2001/02/21 21:54:35
*************** along with this program; if not, write t
*** 19,24 ****
--- 19,27 ----
  Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_HASH_H__
+ #define __GCC_HASH_H__ 1
+ 
  #ifndef IN_GCC
  #include <ansidecl.h>
  #endif /* ! IN_GCC */
*************** extern boolean string_compare PARAMS ((h
*** 133,135 ****
--- 136,139 ----
  extern hash_table_key string_copy PARAMS ((struct obstack* memory,
  					   hash_table_key k));
  
+ #endif /* __GCC_HASH_H__ */
Index: input.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/input.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 input.h
*** input.h	2000/05/09 19:55:47	1.6
--- input.h	2001/02/21 21:54:35
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_INPUT_H__
+ #define __GCC_INPUT_H__ 1
+ 
  /* Source file current line is coming from.  */
  extern const char *input_filename;
  
*************** extern int input_file_stack_tick;
*** 48,50 ****
--- 51,55 ----
  
  extern void push_srcloc PARAMS ((const char *name, int line));
  extern void pop_srcloc PARAMS ((void));
+ 
+ #endif /* __GCC_INPUT_H__ */
Index: integrate.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/integrate.h,v
retrieving revision 1.16
diff -c -3 -p -r1.16 integrate.h
*** integrate.h	2001/01/23 18:36:06	1.16
--- integrate.h	2001/02/21 21:54:35
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_INTEGRATE_H__
+ #define __GCC_INTEGRATE_H__ 1
+ 
  #include "varray.h"
  
  /* This structure is used to remap objects in the function being inlined to
*************** extern varray_type global_const_equiv_va
*** 162,164 ****
--- 165,169 ----
      p->rtx = (RTX);							\
      p->age = (AGE);							\
    }
+ 
+ #endif /* __GCC_INTEGRATE_H__ */
Index: intl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/intl.h,v
retrieving revision 1.2
diff -c -3 -p -r1.2 intl.h
*** intl.h	1999/09/04 15:08:54	1.2
--- intl.h	2001/02/21 21:54:35
***************
*** 16,21 ****
--- 16,24 ----
     Software Foundation, 59 Temple Place - Suite 330, Boston, MA
     02111-1307, USA. */
  
+ #ifndef __GCC_INTL_H__
+ #define __GCC_INTL_H__ 1
+ 
  #ifdef HAVE_LOCALE_H
  # include <locale.h>
  #endif
***************
*** 50,52 ****
--- 53,57 ----
  #ifndef N_
  # define N_(msgid) (msgid)
  #endif
+ 
+ #endif /* __GCC_INTL_H__ */
Index: longlong.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/longlong.h,v
retrieving revision 1.23
diff -c -3 -p -r1.23 longlong.h
*** longlong.h	2000/12/07 01:58:23	1.23
--- longlong.h	2001/02/21 21:54:39
***************
*** 17,22 ****
--- 17,25 ----
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_LONGLONG_H__
+ #define __GCC_LONGLONG_H__ 1
+ 
  /* You have to define the following before including this file:
  
     UWtype -- An unsigned type, default type for operations (typically a "word")
*************** extern const UQItype __clz_tab[];
*** 1487,1489 ****
--- 1490,1494 ----
  #ifndef UDIV_NEEDS_NORMALIZATION
  #define UDIV_NEEDS_NORMALIZATION 0
  #endif
+ 
+ #endif /* __GCC_LONGLONG_H__ */
Index: loop.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/loop.h,v
retrieving revision 1.51
diff -c -3 -p -r1.51 loop.h
*** loop.h	2001/01/25 09:28:55	1.51
--- loop.h	2001/02/21 21:54:40
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_LOOP_H__
+ #define __GCC_LOOP_H__ 1
+ 
  #include "bitmap.h"
  #include "sbitmap.h"
  #include "hard-reg-set.h"
*************** rtx loop_insn_hoist PARAMS((const struct
*** 419,421 ****
--- 422,426 ----
  
  /* Forward declarations for non-static functions declared in doloop.c.  */
  int doloop_optimize PARAMS ((const struct loop *));
+ 
+ #endif /* __GCC_LOOP_H__ */
Index: output.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/output.h,v
retrieving revision 1.55
diff -c -3 -p -r1.55 output.h
*** output.h	2001/02/07 01:04:36	1.55
--- output.h	2001/02/21 21:54:41
*************** along with GNU CC; see the file COPYING.
*** 20,25 ****
--- 20,28 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_OUTPUT_H__
+ #define __GCC_OUTPUT_H__ 1
+ 
  /* Initialize data in final at the beginning of a compilation.  */
  extern void init_final		PARAMS ((const char *));
  
*************** extern const char *user_label_prefix;
*** 460,462 ****
--- 463,467 ----
  /* Assign unique numbers to labels generated for profiling.  */
  
  extern int profile_label_no;
+ 
+ #endif /* __GCC_OUTPUT_H__ */
Index: recog.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/recog.h,v
retrieving revision 1.38
diff -c -3 -p -r1.38 recog.h
*** recog.h	2001/02/18 23:56:34	1.38
--- recog.h	2001/02/21 21:54:41
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_RECOG_H__
+ #define __GCC_RECOG_H__ 1
+ 
  /* Random number that should be large enough for all purposes.  */
  #define MAX_RECOG_ALTERNATIVES 30
  #define recog_memoized(I) (INSN_CODE (I) >= 0 \
*************** struct insn_data
*** 247,249 ****
--- 250,254 ----
  };
  
  extern const struct insn_data insn_data[];
+ 
+ #endif /* __GCC_RECOG_H__ */
Index: regs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regs.h,v
retrieving revision 1.19
diff -c -3 -p -r1.19 regs.h
*** regs.h	2000/06/13 21:47:39	1.19
--- regs.h	2001/02/21 21:54:41
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_REGS_H__
+ #define __GCC_REGS_H__ 1
  
  #include "varray.h"
  
*************** extern int caller_save_needed;
*** 204,206 ****
--- 206,210 ----
  
  /* Allocate reg_n_info tables */
  extern void allocate_reg_info PARAMS ((size_t, int, int));
+ 
+ #endif /* __GCC_REGS_H__ */
Index: reload.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/reload.h,v
retrieving revision 1.33
diff -c -3 -p -r1.33 reload.h
*** reload.h	2001/01/07 02:26:50	1.33
--- reload.h	2001/02/21 21:54:42
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_RELOAD_H__
+ #define __GCC_RELOAD_H__ 1
  
  /* If secondary reloads are the same for inputs and outputs, define those
     macros here.  */
*************** extern void cleanup_subreg_operands PARA
*** 387,389 ****
--- 389,393 ----
  /* Debugging support.  */
  extern void debug_reload_to_stream PARAMS ((FILE *));
  extern void debug_reload PARAMS ((void));
+ 
+ #endif /* __GCC_RELOAD_H__ */
Index: resource.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/resource.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 resource.h
*** resource.h	2000/05/27 20:23:14	1.7
--- resource.h	2001/02/21 21:54:42
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_RESOURCE_H__
+ #define __GCC_RESOURCE_H__ 1
+ 
  /* Macro to clear all resources.  */
  #define CLEAR_RESOURCE(RES)	\
   do { (RES)->memory = (RES)->unch_memory = (RES)->volatil = (RES)->cc = 0; \
*************** extern void incr_ticks_for_insn		PARAMS 
*** 50,52 ****
--- 53,57 ----
  extern void mark_end_of_function_resources PARAMS ((rtx, int));
  extern void init_resource_info		PARAMS ((rtx));
  extern void free_resource_info		PARAMS ((void));
+ 
+ #endif /* __GCC_RESOURCE_H__ */
Index: scan.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/scan.h,v
retrieving revision 1.15
diff -c -3 -p -r1.15 scan.h
*** scan.h	2000/11/27 08:00:04	1.15
--- scan.h	2001/02/21 21:54:42
*************** You should have received a copy of the G
*** 15,20 ****
--- 15,23 ----
  along with this program; if not, write to the Free Software
  Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_SCAN_H__
+ #define __GCC_SCAN_H__ 1
+ 
  #include <stdio.h>
  
  typedef struct sstring
*************** extern int source_lineno;
*** 80,82 ****
--- 83,87 ----
  extern sstring source_filename;
  /* Current physical line number */
  extern int lineno;
+ 
+ #endif /* __GCC_SCAN_H__ */
Index: sched-int.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-int.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 sched-int.h
*** sched-int.h	2001/01/12 18:00:49	1.7
--- sched-int.h	2001/02/21 21:54:42
*************** along with GNU CC; see the file COPYING.
*** 20,25 ****
--- 20,28 ----
  the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  02111-1307, USA.  */
  
+ #ifndef __GCC_SCHED_INT_H__
+ #define __GCC_SCHED_INT_H__ 1
+ 
  /* Forward declaration.  */
  struct ready_list;
  
*************** extern int insn_cost PARAMS ((rtx, rtx, 
*** 292,294 ****
--- 295,298 ----
  extern rtx get_unit_last_insn PARAMS ((int));
  extern int actual_hazard_this_instance PARAMS ((int, int, rtx, int, int));
  
+ #endif /* __GCC_SCHED_INT_H__ */
Index: sdbout.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 sdbout.h
*** sdbout.h	2000/06/06 12:08:44	1.6
--- sdbout.h	2001/02/21 21:54:42
*************** along with GNU CC; see the file COPYING.
*** 18,23 ****
--- 18,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_SDBOUT_H__
+ #define __GCC_SDBOUT_H__ 1
+ 
  extern void sdbout_init			PARAMS ((FILE *, const char *, tree));
  
  extern void sdbout_begin_function	PARAMS ((int));
*************** extern void sdbout_start_new_source_file
*** 37,39 ****
--- 40,43 ----
  extern void sdbout_resume_previous_source_file	PARAMS ((void));
  extern void sdbout_mark_begin_function	PARAMS ((void));
  
+ #endif
Index: ssa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ssa.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 ssa.h
*** ssa.h	2000/08/02 04:21:27	1.1
--- ssa.h	2001/02/21 21:54:42
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_SSA_H__
+ #define __GCC_SSA_H__ 1
  
  /* Main SSA routines.  */
  extern void convert_to_ssa		PARAMS ((void));
*************** extern varray_type ssa_uses;
*** 62,64 ****
--- 64,68 ----
  #define CONVERT_REGISTER_TO_SSA_P(REG_NO)	\
  	((!HARD_REGISTER_NUM_P (REG_NO)) || \
  	 (CONVERT_HARD_REGISTER_TO_SSA_P (REG_NO)))
+ 
+ #endif /* __GCC_SSA_H__ */
Index: stack.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stack.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 stack.h
*** stack.h	2000/01/17 17:16:20	1.5
--- stack.h	2001/02/21 21:54:42
*************** along with this program; if not, write t
*** 17,22 ****
--- 17,25 ----
  Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_STACK_H__
+ #define __GCC_STACK_H__ 1
+ 
  /* Summary: this file contains additional structures that layer
     on top of obstacks for GNU C++.  */
  
*************** struct stack_level
*** 40,42 ****
--- 43,47 ----
  
  struct stack_level *push_stack_level PARAMS ((struct obstack *, char *, int));
  struct stack_level *pop_stack_level PARAMS ((struct stack_level *));
+ 
+ #endif /* __GCC_STACK_H__ */
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.226
diff -c -3 -p -r1.226 tree.h
*** tree.h	2001/02/21 14:42:09	1.226
--- tree.h	2001/02/21 21:54:44
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,27 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_TREE_H__
+ #define __GCC_TREE_H__ 1
+ 
  #include "machmode.h"
  #include "version.h"
  
*************** extern void dwarf2out_end_epilogue	PARAM
*** 2884,2886 ****
--- 2887,2891 ----
  extern void fancy_abort PARAMS ((const char *, int, const char *))
      ATTRIBUTE_NORETURN;
  #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
+ 
+ #endif /* __GCC_TREE_H__ */
Index: typeclass.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/typeclass.h,v
retrieving revision 1.3
diff -c -3 -p -r1.3 typeclass.h
*** typeclass.h	1998/12/16 20:58:40	1.3
--- typeclass.h	2001/02/21 21:54:44
***************
*** 1,5 ****
--- 1,8 ----
  /* Values returned by __builtin_classify_type.  */
  
+ #ifndef __GCC_TYPECLASS_H__
+ #define __GCC_TYPECLASS_H__ 1
+ 
  enum type_class
  {
    no_type_class = -1,
*************** enum type_class
*** 12,14 ****
--- 15,19 ----
    array_type_class, string_type_class, set_type_class, file_type_class,
    lang_type_class
  };
+ 
+ #endif /* __GCC_TYPECLASS_H__ */
Index: xcoffout.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/xcoffout.h,v
retrieving revision 1.10
diff -c -3 -p -r1.10 xcoffout.h
*** xcoffout.h	2000/09/25 08:08:58	1.10
--- xcoffout.h	2001/02/21 21:54:45
*************** along with GNU CC; see the file COPYING.
*** 19,24 ****
--- 19,26 ----
  the Free Software Foundation, 59 Temple Place - Suite 330,
  Boston, MA 02111-1307, USA.  */
  
+ #ifndef __GCC_XCOFFOUT_H__
+ #define __GCC_XCOFFOUT_H__ 1
  
  #define ASM_STABS_OP "\t.stabx\t"
  
*************** extern void xcoffout_declare_function		P
*** 209,211 ****
--- 211,215 ----
  extern void xcoffout_source_line		PARAMS ((FILE *, const char *, rtx));
  #endif /* BUFSIZ */
  #endif /* RTX_CODE */
+ 
+ #endif /* __GCC_XCOFFOUT_H__ */


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