diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-19 20:44:47 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-19 20:44:47 +0000 |
commit | ff6624bc0d091244b1495a876ad718bf3660fb51 (patch) | |
tree | 43b24c99ade8c59d05ac05d4aecbdd6ff2c2f406 /gcc/c-family/c-target.def | |
parent | f16c00a6be6dca58f3804b3fcc545c00ef0a7899 (diff) | |
download | gcc-ff6624bc0d091244b1495a876ad718bf3660fb51.tar.gz |
gcc/
* doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
(ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
Remove.
* doc/tm.texi: Regenerate.
* config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
.objc_class_name_*.
* config/darwin-c.c: Include target.h.
(darwin_objc_declare_unresolved_class_reference): New function.
(darwin_objc_declare_class_definition): New function.
(TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
(TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
c-family/
* c-target.def (objc_declare_unresolved_class_reference,
objc_declare_class_definition): Add new hooks.
objc/
* objc-next-runtime-abi-01.c: Do not include tm.h and output.h.
Include c-family/c-target.h.
(handle_next_class_ref): Rewrite to emit top-level asm statements.
(handle_next_impent): Likewise.
* objc/Make-lang.in: Fix dependencies for objc-next-runtime-abi-01.o.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188793 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-target.def')
-rw-r--r-- | gcc/c-family/c-target.def | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/c-family/c-target.def b/gcc/c-family/c-target.def index 356fe26680a..c5ebdf14ac4 100644 --- a/gcc/c-family/c-target.def +++ b/gcc/c-family/c-target.def @@ -59,7 +59,21 @@ DEFHOOK common-format string object when the target provides one.", tree, (tree string), NULL) - + +DEFHOOK +(objc_declare_unresolved_class_reference, + "Declare that Objective C class @var{classname} is referenced\ + by the current TU.", + void, (const char *classname), + NULL) + +DEFHOOK +(objc_declare_class_definition, + "Declare that Objective C class @var{classname} is defined\ + by the current TU.", + void, (const char *classname), + NULL) + DEFHOOK (string_object_ref_type_p, "If a target implements string objects then this hook should return\ |