summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 13:41:25 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-29 13:41:25 +0000
commit746409a48f65b9f534f0ec9120ad974826064f7c (patch)
tree271055b104ee1d42602d1a5fcd62c8a6183e3e5e /gcc/toplev.c
parent1a24ab8608ab701fdeca020aef3c4fed62448755 (diff)
downloadgcc-746409a48f65b9f534f0ec9120ad974826064f7c.tar.gz
* tree.c (tree_code_name): Constify a char*.
* tree.h (tree_code_name, decl_printable_name): Likewise. * function.h (struct function): Likewise. * toplev.c (decl_name, decl_printable_name): Likewise. * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise. * objc/objc-act.c (decl_printable_name): Remove redundant prototype. (init_objc): Remove function pointer cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 112c89133b4..c6cac416790 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -183,7 +183,7 @@ void pedwarn_with_file_and_line PVPROTO((const char *file,
int line, const char *s, ...));
void sorry PVPROTO((const char *s, ...));
static void set_target_switch PROTO((const char *));
-static char *decl_name PROTO((tree, int));
+static const char *decl_name PROTO((tree, int));
static void vmessage PROTO((const char *, const char *, va_list));
static void v_message_with_file_and_line PROTO((const char *, int, int,
const char *, va_list));
@@ -359,7 +359,7 @@ int sorrycount = 0;
2: and any other information that might be interesting, such as function
parameter types in C++. */
-char *(*decl_printable_name) PROTO ((tree, int));
+const char *(*decl_printable_name) PROTO ((tree, int));
/* Pointer to function to compute rtl for a language-specific tree code. */
@@ -1455,7 +1455,7 @@ fatal_io_error (name)
/* This is the default decl_printable_name function. */
-static char *
+static const char *
decl_name (decl, verbosity)
tree decl;
int verbosity ATTRIBUTE_UNUSED;