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]

PATCH: Protect tree.h against multiple inclusions


Bootstrapped and tested (all languages except Ada and treelang) on an
i686-pc-linux.  Applied to mainline.

I suspect that c-common.h should #include tree.h.  Thoughts?

-- Gaby

2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>

	* tree.h: Guard against multiple inclusion.

Index: tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.h,v
retrieving revision 1.348
diff -p -r1.348 tree.h
*** tree.h	4 Aug 2002 22:45:20 -0000	1.348
--- tree.h	14 Aug 2002 02:11:41 -0000
*************** along with GCC; see the file COPYING.  I
*** 19,24 ****
--- 19,27 ----
  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  02111-1307, USA.  */
  
+ #ifndef GCC_TREE_H
+ #define GCC_TREE_H
+ 
  #include "machmode.h"
  #include "version.h"
  #include "location.h"
*************** extern const char *dump_flag_name	PARAMS
*** 3098,3100 ****
--- 3101,3105 ----
  extern void fancy_abort PARAMS ((const char *, int, const char *))
      ATTRIBUTE_NORETURN;
  #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
+ 
+ #endif  /* GCC_TREE_H  */


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