* dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 07:50:46 +0000 (07:50 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 07:50:46 +0000 (07:50 +0000)
Add multiple-include guard.
cp:
* parser.c (cp_parser_save_member_function_body): Mark the
definition static.
treelang:
* parse.y (yyerror): Mark the definition static.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75536 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/dwarf2.h
gcc/treelang/ChangeLog
gcc/treelang/parse.y
gcc/unwind-dw2-fde.h
gcc/unwind-pe.h
gcc/unwind.h

index 96e10ab..7596fb9 100644 (file)
@@ -1,7 +1,12 @@
+2004-01-07  Zack Weinberg  <zack@codesourcery.com>
+
+       * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
+       Add multiple-include guard.
+
 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
 
-       * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept 
-       all vector constant loadable by vsplt*.  
+       * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
+       all vector constant loadable by vsplt*.
        (output_vec_const_move): Likewise.
 
 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
index 4902224..147ca7d 100644 (file)
@@ -1,9 +1,14 @@
+2004-01-07  Zack Weinberg  <zack@codesourcery.com>
+
+       * parser.c (cp_parser_save_member_function_body): Mark the
+       definition static.
+
 2004-01-05  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/13057
        * class.c (build_clone): Copy type attributes from the original
        function to the clone.
-       
+
        PR c++/12815
        * class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
        references as constant.
index 560ad48..a9e50ec 100644 (file)
@@ -14196,7 +14196,7 @@ cp_parser_functional_cast (cp_parser* parser, tree type)
    specifiers applied to the declaration.  Returns the FUNCTION_DECL
    for the member function.  */
 
-tree
+static tree
 cp_parser_save_member_function_body (cp_parser* parser,
                                     tree decl_specifiers,
                                     tree declarator,
index 2345d3a..0e98a45 100644 (file)
@@ -38,6 +38,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 /* This file is shared between GCC and GDB, and should not contain
    prototypes.  */
 
+#ifndef GCC_DWARF2_H
+#define GCC_DWARF2_H
+
 /* Tag names and codes.  */
 enum dwarf_tag
   {
@@ -628,3 +631,5 @@ enum dwarf_macinfo_record_type
 #define DW_EH_PE_aligned       0x50
 
 #define DW_EH_PE_indirect      0x80
+
+#endif /* dwarf2.h */
index d017977..fa087fa 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-07  Zack Weinberg  <zack@codesourcery.com>
+
+       * parse.y (yyerror): Mark the definition static.
+
 2003-12-04  James A. Morrison  <ja2morri@uwaterloo.ca>
 
        * lex.l: Add \t as a whitespace character.
index f0f721d..e7c9838 100644 (file)
@@ -783,7 +783,7 @@ print_token (FILE * file, unsigned int type ATTRIBUTE_UNUSED, YYSTYPE value)
 }
 
 /* Output a message ERROR_MESSAGE from the parser.  */
-void
+static void
 yyerror (const char *error_message)
 {
   struct prod_token_parm_item *tok;
index 1eb6172..89e038a 100644 (file)
@@ -29,6 +29,8 @@ along with GCC; see the file COPYING.  If not, write to the Free
 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.  */
 
+#ifndef GCC_UNWIND_DW2_FDE_H
+#define GCC_UNWIND_DW2_FDE_H
 
 struct fde_vector
 {
@@ -174,3 +176,5 @@ last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)
   return f->length == 0;
 #endif
 }
+
+#endif /* unwind-dw2-fde.h */
index 4bf2cfd..52e618c 100644 (file)
@@ -31,6 +31,9 @@
    compatibility problems with the base ABI.  This is slightly better
    than duplicating code, however.  */
 
+#ifndef GCC_UNWIND_PE_H
+#define GCC_UNWIND_PE_H
+
 /* If using C++, references to abort have to be qualified with std::.  */
 #if __cplusplus
 #define __gxx_abort std::abort
@@ -284,3 +287,5 @@ read_encoded_value (struct _Unwind_Context *context, unsigned char encoding,
 }
 
 #endif
+
+#endif /* unwind-pe.h */
index 35c765e..64768c0 100644 (file)
@@ -28,6 +28,9 @@
 /* This is derived from the C++ ABI for IA-64.  Where we diverge
    for cross-architecture compatibility are noted with "@@@".  */
 
+#ifndef _UNWIND_H
+#define _UNWIND_H
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -225,3 +228,5 @@ extern void * _Unwind_FindEnclosingFunction (void *pc);
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* unwind.h */