summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.h
diff options
context:
space:
mode:
authorturly <turly@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-21 10:44:50 +0000
committerturly <turly@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-21 10:44:50 +0000
commit8e7f7ecc10de0e7829330ccab85ac34d2e679a8f (patch)
tree120a1e8484f0b9ff624971bd8e0d3f9c36263e6f /gcc/config/darwin.h
parentbcb7a8f653dc9b2be7c2d68cc61d1d84f586acf5 (diff)
downloadgcc-8e7f7ecc10de0e7829330ccab85ac34d2e679a8f.tar.gz
* darwin.c (machopic_classify_ident): Handle "stale" section-
encoded name problem to avoid generating illegal stubs. (func_name_maybe_scoped): Remove, not needed for gcc3. (machopic_indirect_call_target): Don't use it. (darwin_encode_section_info): Call only one of update_stubs() or update_non_lazy_ptrs() as DECL cannot be both. (machopic_output_possible_stub_label): New. * darwin.h (ASM_DECLARE_FUNCTION_NAME): Use it. * darwin-protos.h (machopic_output_possible_stub_label): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48238 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r--gcc/config/darwin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 7988b61a393..3ee493daac7 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -232,6 +232,9 @@ do { text_section (); \
|| DECL_INITIAL (DECL)) \
ENCODE_SECTION_INFO (DECL); \
ASM_OUTPUT_LABEL (FILE, xname); \
+ /* Avoid generating stubs for functions we've just defined by \
+ outputting any required stub name label now. */ \
+ machopic_output_possible_stub_label (FILE, xname); \
} while (0)
/* Wrap new method names in quotes so the assembler doesn't gag.