[lto] Fix declarations of lang_hooks

Diego Novillo dnovillo@google.com
Tue Jan 13 03:14:00 GMT 2009


struct lang_hooks is no longer const.


Diego.


java/ChangeLog.lto

	* lang.c (struct lang_hooks): Remove const qualifier.

objc/ChangeLog.lto

	* objc-lang.c (static): Remove const qualifier.

objcp/ChangeLog.lto

	* objcp-lang.c: Remove const qualifier.

fortran/ChangeLog.lto

	* f95-lang.c: Remove const qualifier.

Index: java/lang.c
===================================================================
--- java/lang.c	(revision 143302)
+++ java/lang.c	(working copy)
@@ -162,7 +162,7 @@ struct language_function GTY(())
 #define LANG_HOOKS_ATTRIBUTE_TABLE java_attribute_table
 
 /* Each front end provides its own.  */
-const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
 
 /*
  * process java-specific compiler command-line options
Index: objc/objc-lang.c
===================================================================
--- objc/objc-lang.c	(revision 143302)
+++ objc/objc-lang.c	(working copy)
@@ -52,7 +52,7 @@ static void objc_init_ts (void);
 #define LANG_HOOKS_INIT_TS objc_init_ts
 
 /* Each front end provides its own lang hook initializer.  */
-const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
 
 /* Lang hook routines common to C and ObjC appear in c-objc-common.c;
    there should be very few (if any) routines below.  */
Index: objcp/objcp-lang.c
===================================================================
--- objcp/objcp-lang.c	(revision 143302)
+++ objcp/objcp-lang.c	(working copy)
@@ -52,7 +52,7 @@ static void objcxx_init_ts (void);
 #define LANG_HOOKS_INIT_TS objcxx_init_ts
 
 /* Each front end provides its own lang hook initializer.  */
-const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
 
 /* Lang hook routines common to C++ and ObjC++ appear in cp/cp-objcp-common.c;
    there should be very few (if any) routines below.  */
Index: fortran/f95-lang.c
===================================================================
--- fortran/f95-lang.c	(revision 143302)
+++ fortran/f95-lang.c	(working copy)
@@ -155,7 +155,7 @@ static void gfc_init_ts (void);
 #define LANG_HOOKS_BUILTIN_FUNCTION          gfc_builtin_function
 #define LANG_HOOKS_GET_ARRAY_DESCR_INFO	     gfc_get_array_descr_info
 
-const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
 
 #define NULL_BINDING_LEVEL (struct binding_level *) NULL
 



More information about the Gcc-patches mailing list