diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-08-29 13:49:39 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-08-29 13:49:39 +0000 |
commit | 4b731ffa592b354d3938d0bc094c6ec3efa6e3a7 (patch) | |
tree | a46e068bfb5f989ff6661fb2800316de021aa398 /gcc | |
parent | e1def31b3f923559eca94c97a61ba55809c49386 (diff) | |
download | gcc-4b731ffa592b354d3938d0bc094c6ec3efa6e3a7.zip gcc-4b731ffa592b354d3938d0bc094c6ec3efa6e3a7.tar.gz gcc-4b731ffa592b354d3938d0bc094c6ec3efa6e3a7.tar.bz2 |
* com.c (lang_printable_name): Constify a char*.
From-SVN: r28969
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/f/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/f/com.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 6c27694..fd021c9 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 29 09:47:45 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * com.c (lang_printable_name): Constify a char*. + Wed Aug 25 01:21:06 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * lang-specs.h: Pass cc1 spec to f771. diff --git a/gcc/f/com.c b/gcc/f/com.c index 47ee8a1..8d0fc68 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. |