This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch installed: two constification nits


Moves a few bytes from .data to .rodata, bootstrapped on solaris2.7
and installed as obvious.



2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

cp:
	* mangle.c (integer_type_codes): Const-ify.
java:
	* decl.c (clear_binding_level): Const-ify.

diff -rup orig/egcc-CVS20020620/gcc/cp/mangle.c egcc-CVS20020620/gcc/cp/mangle.c
--- orig/egcc-CVS20020620/gcc/cp/mangle.c	2002-06-18 16:01:25.000000000 -0400
+++ egcc-CVS20020620/gcc/cp/mangle.c	2002-06-20 21:49:59.330796725 -0400
@@ -121,7 +121,7 @@ static tree subst_identifiers[SUBID_MAX]
 
 /* Single-letter codes for builtin integer types, defined in
    <builtin-type>.  These are indexed by integer_type_kind values.  */
-static char
+static const char
 integer_type_codes[itk_none] =
 {
   'c',  /* itk_char */
diff -rup orig/egcc-CVS20020620/gcc/java/decl.c egcc-CVS20020620/gcc/java/decl.c
--- orig/egcc-CVS20020620/gcc/java/decl.c	2002-06-04 07:04:11.000000000 -0400
+++ egcc-CVS20020620/gcc/java/decl.c	2002-06-20 22:21:06.488815518 -0400
@@ -308,7 +308,7 @@ static struct binding_level *global_bind
 
 /* Binding level structures are initialized by copying this one.  */
 
-static struct binding_level clear_binding_level
+static const struct binding_level clear_binding_level
   = {NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE,
        NULL_BINDING_LEVEL, LARGEST_PC, 0};
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]