summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/decl2.c2
-rw-r--r--gcc/cp/method.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e6f17ead128..bf8dd2aa16a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * decl2.c (finish_objects): Constify a char*.
+
+ * method.c (emit_thunk): Likewise.
+
2000-03-06 Nathan Sidwell <nathan@codesourcery.com>
* typeck.c (dubious_conversion_warnings): Look through
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 8e66bb6bc3c..7f5ba6a3901 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -2840,7 +2840,7 @@ finish_objects (method_type, initp, body)
int method_type, initp;
tree body;
{
- char *fnname;
+ const char *fnname;
tree fn;
/* Finish up. */
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 4a41e5ab80b..6e869f1e88c 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -2098,7 +2098,7 @@ emit_thunk (thunk_fndecl)
#ifdef ASM_OUTPUT_MI_THUNK
if (!flag_syntax_only)
{
- char *fnname;
+ const char *fnname;
current_function_decl = thunk_fndecl;
/* Make sure we build up its RTL before we go onto the
temporary obstack. */