From ae718d66b613819ca53a6dffbfce517ae200bc89 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 5 Oct 2010 18:40:09 +0000 Subject: [PATCH] * lto.c (lto_section_with_id): Make s a const pointer. From-SVN: r164996 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * lto.c (lto_section_with_id): Make s a const pointer. + 2010-10-05 Jan Hubicka * 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; -- 2.7.4