* lto.c (lto_section_with_id): Make s a const pointer.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Oct 2010 18:40:09 +0000 (18:40 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Oct 2010 18:40:09 +0000 (18:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164996 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/lto/ChangeLog
gcc/lto/lto.c

index 29b29cc..a3f2fd8 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-05  Ian Lance Taylor  <iant@google.com>
+
+       * lto.c (lto_section_with_id): Make s a const pointer.
+
 2010-10-05  Jan Hubicka  <jh@suse.cz>
 
        * lto.c:  Include params.h.
index 6623704..323b09a 100644 (file)
@@ -431,7 +431,7 @@ lto_resolution_read (splay_tree file_ids, FILE *resolution, lto_file *file)
 static int 
 lto_section_with_id (const char *name, unsigned *id)
 {
-  char *s;
+  const char *s;
 
   if (strncmp (name, LTO_SECTION_NAME_PREFIX, strlen (LTO_SECTION_NAME_PREFIX)))
     return 0;