public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: Protect tree.h against multiple inclusions
@ 2002-08-13 19:17 Gabriel Dos Reis
  0 siblings, 0 replies; only message in thread
From: Gabriel Dos Reis @ 2002-08-13 19:17 UTC (permalink / raw)
  To: gcc-patches


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  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-14  2:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13 19:17 PATCH: Protect tree.h against multiple inclusions Gabriel Dos Reis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).