This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Protect tree.h against multiple inclusions
- From: Gabriel Dos Reis <gdr at nerim dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Aug 2002 04:17:44 +0200
- Subject: 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 */