diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-23 22:39:06 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-23 22:39:06 +0000 |
commit | 79d44e49222c7e8366abb1226d13d3344707f0ab (patch) | |
tree | cb4da29020192aa15873d573eab51b6544eb48ea /gcc/config/darwin.c | |
parent | 289243d9d22bb8e8bf358cd6ad23dd1fbf4b53ab (diff) | |
download | ppe42-gcc-79d44e49222c7e8366abb1226d13d3344707f0ab.tar.gz ppe42-gcc-79d44e49222c7e8366abb1226d13d3344707f0ab.zip |
* darwin-protos.h (constructor_section, destructor_section,
mod_init_section, mod_term_section): Prototype.
* darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
Const-ify.
* darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
Likewise.
(SECTION_FUNCTION): Prototype `FUNCTION'. Delete
objc_section_init declaration.
(EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
(objc_section_init, try_section_alias): Make static.
(alias_section): Make static and hide unused function.
(ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46447 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index fe0852813df..158f375c4cb 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -885,8 +885,8 @@ machopic_finish (asm_out_file) temp != NULL_TREE; temp = TREE_CHAIN (temp)) { - char *sym_name = IDENTIFIER_POINTER (TREE_VALUE (temp)); - char *stub_name = IDENTIFIER_POINTER (TREE_PURPOSE (temp)); + const char *sym_name = IDENTIFIER_POINTER (TREE_VALUE (temp)); + const char *stub_name = IDENTIFIER_POINTER (TREE_PURPOSE (temp)); char *sym; char *stub; @@ -1066,7 +1066,7 @@ static void update_non_lazy_ptrs (name) const char *name; { - char *name1, *name2; + const char *name1, *name2; tree temp; STRIP_NAME_ENCODING (name1, name); @@ -1097,7 +1097,7 @@ static void update_stubs (name) const char *name; { - char *name1, *name2; + const char *name1, *name2; tree temp; STRIP_NAME_ENCODING (name1, name); |