This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Add include guards to conditions.h
- From: "Mark G. Adams" <mark dot g dot adams at sympatico dot ca>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 14 Jun 2004 19:42:13 -0400
- Subject: [PATCH] Add include guards to conditions.h
gcc/conditions.h was missing include guards.
Bootstrapped and tested on i686-pc-linux-gnu.
Ok to apply?
//Mark
2004-06-14 Mark G. Adams <mark.g.adams@sympatico.ca>
* conditions.h: Add include guards
Index: conditions.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/conditions.h,v
retrieving revision 1.5
diff -c -3 -p -r1.5 conditions.h
*** conditions.h 9 Oct 2001 22:40:11 -0000 1.5
--- conditions.h 14 Jun 2004 21:53:54 -0000
***************
*** 1,5 ****
/* Definitions for condition code handling in final.c and output routines.
! Copyright (C) 1987 Free Software Foundation, Inc.
This file is part of GCC.
--- 1,5 ----
/* Definitions for condition code handling in final.c and output routines.
! Copyright (C) 1987, 2004 Free Software Foundation, Inc.
This file is part of GCC.
*************** along with GCC; see the file COPYING. I
*** 18,23 ****
--- 18,26 ----
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
+ #ifndef GCC_CONDITIONS_H
+ #define GCC_CONDITIONS_H
+
/* None of the things in the files exist if we don't use CC0. */
#ifdef HAVE_cc0
*************** extern CC_STATUS cc_status;
*** 115,118 ****
(cc_status.flags = 0, cc_status.value1 = 0, cc_status.value2 = 0, \
CC_STATUS_MDEP_INIT)
! #endif
--- 118,123 ----
(cc_status.flags = 0, cc_status.value1 = 0, cc_status.value2 = 0, \
CC_STATUS_MDEP_INIT)
! #endif /* HAVE_cc0 */
!
! #endif /* GCC_CONDITIONS_H */