From c95910595c2eaf9a2c9e566433e7f5aef4b6c638 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 9 Aug 1999 23:38:41 +0000 Subject: [PATCH] tree.h (lang_identify): Constify a char*. * tree.h (lang_identify): Constify a char*. (print_error_function): Add extern prototype. Constify a char*. * c-lang.c (lang_identify): Constify a char*. * objc/objc-act.c (lang_identify): Constify a char*. From-SVN: r28631 --- gcc/ChangeLog | 9 +++++++++ gcc/c-lang.c | 2 +- gcc/objc/objc-act.c | 2 +- gcc/tree.h | 6 +++++- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb1515facae..5128c7b326b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi + + * tree.h (lang_identify): Constify a char*. + (print_error_function): Add extern prototype. Constify a char*. + + * c-lang.c (lang_identify): Constify a char*. + + * objc/objc-act.c (lang_identify): Constify a char*. + Mon Aug 9 16:21:53 1999 Bernd Schmidt * genpeep.c (main): Make generated file include "function.h". diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 8f37cab474a..c8c4645a883 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -75,7 +75,7 @@ lang_finish () { } -char * +const char * lang_identify () { return "c"; diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 685c95087fe..3bafafe56a1 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -682,7 +682,7 @@ lang_finish () { } -char * +const char * lang_identify () { return "objc"; diff --git a/gcc/tree.h b/gcc/tree.h index 8380560e8ee..a56b202a268 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2077,7 +2077,11 @@ extern void lang_init PROTO((void)); extern void lang_finish PROTO((void)); /* Function to identify which front-end produced the output file. */ -extern char *lang_identify PROTO((void)); +extern const char *lang_identify PROTO((void)); + +/* Called by report_error_function to print out function name. + * Default may be overridden by language front-ends. */ +extern void (*print_error_function) PROTO((const char *)); /* Function to replace the DECL_LANG_SPECIFIC field of a DECL with a copy. */ extern void copy_lang_decl PROTO((tree));