diff options
author | Stan Shebs <shebs@apple.com> | 2002-07-16 23:59:40 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2002-07-16 23:59:40 +0000 |
commit | 92c1a778dfe590e3fef30f94611c0766a12e711a (patch) | |
tree | 972139a3bb6ac8c309fb69fcd945993a5824ac87 | |
parent | daaab00ade7d7d7a17ca651821cc8ceac1f97b87 (diff) | |
download | gcc-92c1a778dfe590e3fef30f94611c0766a12e711a.zip gcc-92c1a778dfe590e3fef30f94611c0766a12e711a.tar.gz gcc-92c1a778dfe590e3fef30f94611c0766a12e711a.tar.bz2 |
darwin.c (func_name_maybe_scoped): Remove unused decl.
* darwin.c (func_name_maybe_scoped): Remove unused decl.
(machopic_function_base_name): Declare result to be const.
(machopic_non_lazy_ptr_name): Ditto.
(machopic_stub_name): Ditto.
* darwin-protos.h: Ditto for the prototypes.
From-SVN: r55501
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/darwin-protos.h | 6 | ||||
-rw-r--r-- | gcc/config/darwin.c | 8 |
3 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51ed5b0..e1ce4eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2002-07-16 Stan Shebs <shebs@apple.com> + + * darwin.c (func_name_maybe_scoped): Remove unused decl. + (machopic_function_base_name): Declare result to be const. + (machopic_non_lazy_ptr_name): Ditto. + (machopic_stub_name): Ditto. + * darwin-protos.h: Ditto for the prototypes. + Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz> * m68hc11.c (m68hc11_reorg): Do not rebuild CFG. diff --git a/gcc/config/darwin-protos.h b/gcc/config/darwin-protos.h index 19f83c6..96b614f 100644 --- a/gcc/config/darwin-protos.h +++ b/gcc/config/darwin-protos.h @@ -22,9 +22,9 @@ extern int name_needs_quotes PARAMS ((const char *)); extern void machopic_validate_stub_or_non_lazy_ptr PARAMS ((const char *, int)); -extern char *machopic_function_base_name PARAMS ((void)); -extern char *machopic_non_lazy_ptr_name PARAMS ((const char*)); -extern char *machopic_stub_name PARAMS ((const char*)); +extern const char *machopic_function_base_name PARAMS ((void)); +extern const char *machopic_non_lazy_ptr_name PARAMS ((const char*)); +extern const char *machopic_stub_name PARAMS ((const char*)); extern void machopic_picsymbol_stub_section PARAMS ((void)); extern void machopic_symbol_stub_section PARAMS ((void)); diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 82e320b..e293abb 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -38,13 +38,11 @@ Boston, MA 02111-1307, USA. */ #include "function.h" #include "ggc.h" #include "langhooks.h" - #include "darwin-protos.h" extern void machopic_output_stub PARAMS ((FILE *, const char *, const char *)); static int machopic_data_defined_p PARAMS ((const char *)); -static int func_name_maybe_scoped PARAMS ((const char *)); static void update_non_lazy_ptrs PARAMS ((const char *)); static void update_stubs PARAMS ((const char *)); @@ -227,7 +225,7 @@ static char function_base[32]; static int current_pic_label_num; -char * +const char * machopic_function_base_name () { static const char *name = NULL; @@ -263,7 +261,7 @@ static GTY(()) tree machopic_non_lazy_pointers; either by finding it in our list of pointer names, or by generating a new one. */ -char * +const char * machopic_non_lazy_ptr_name (name) const char *name; { @@ -326,7 +324,7 @@ static GTY(()) tree machopic_stubs; /* Return the name of the stub corresponding to the given name, generating a new stub name if necessary. */ -char * +const char * machopic_stub_name (name) const char *name; { |