aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-10-05 18:40:09 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-10-05 18:40:09 +0000
commitae718d66b613819ca53a6dffbfce517ae200bc89 (patch)
tree52e8dd7d74784dce5655fcbe60aff272fb3a4cc6
parent852e4bd21fd96a8f6a455eeeddd73d9e9db39e99 (diff)
downloadgcc-ae718d66b613819ca53a6dffbfce517ae200bc89.zip
gcc-ae718d66b613819ca53a6dffbfce517ae200bc89.tar.gz
gcc-ae718d66b613819ca53a6dffbfce517ae200bc89.tar.bz2
* lto.c (lto_section_with_id): Make s a const pointer.
From-SVN: r164996
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 29b29cc..a3f2fd8 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 6623704..323b09a 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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;