From 4b731ffa592b354d3938d0bc094c6ec3efa6e3a7 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 29 Aug 1999 13:49:39 +0000 Subject: [PATCH] * com.c (lang_printable_name): Constify a char*. From-SVN: r28969 --- gcc/f/ChangeLog | 4 ++++ gcc/f/com.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 6c276948fca..fd021c9ab60 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 29 09:47:45 1999 Kaveh R. Ghazi + + * com.c (lang_printable_name): Constify a char*. + Wed Aug 25 01:21:06 1999 Rainer Orth * lang-specs.h: Pass cc1 spec to f771. diff --git a/gcc/f/com.c b/gcc/f/com.c index 47ee8a11084..8d0fc68f512 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -502,7 +502,7 @@ static void delete_block (tree block); static int duplicate_decls (tree newdecl, tree olddecl); static void finish_decl (tree decl, tree init, bool is_top_level); static void finish_function (int nested); -static char *lang_printable_name (tree decl, int v); +static const char *lang_printable_name (tree decl, int v); static tree lookup_name_current_level (tree name); static struct binding_level *make_binding_level (void); static void pop_f_function_context (void); @@ -14417,7 +14417,7 @@ finish_function (int nested) per se, but if that comes up, it should be easy to check (being a nested function and all). */ -static char * +static const char * lang_printable_name (tree decl, int v) { /* Just to keep GCC quiet about the unused variable. -- 2.30.2