(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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55501
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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));
#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 *));
static int current_pic_label_num;
-char *
+const char *
machopic_function_base_name ()
{
static const char *name = NULL;
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;
{
/* 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;
{