diff options
author | Anatoly Sokolov <aesok@post.ru> | 2010-06-15 21:01:57 +0000 |
---|---|---|
committer | Anatoly Sokolov <aesok@post.ru> | 2010-06-15 21:01:57 +0000 |
commit | a3620f5eb52e54981248012ba3b3d314d153e18e (patch) | |
tree | 17306d02a0afd6f48b81bff1a4163e2b152c10be /gcc/target-def.h | |
parent | 49454e009acca5c35e9eb9d15213e975e998134b (diff) |
* target.h (struct asm_out):Add declare_constant_name field.
* target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
(TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
* output.h (default_asm_declare_constant_name): Declare.
(assemble_label): Update prototype.
* varasm.c (assemble_constant_contents): Use
targetm.asm_out.declare_constant_name target hook.
(assemble_label): Add 'file' argument.
(default_asm_declare_constant_name): New function.
* system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
* doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
(TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
* config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
* config/darwin.c (darwin_asm_declare_constant_name): New function.
(machopic_output_indirection): Update assemble_label argument list.
* config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
(TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@160811 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r-- | gcc/target-def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h index 91120bae535..1aaf38c2e53 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -84,6 +84,10 @@ #define TARGET_ASM_INTERNAL_LABEL default_internal_label #endif +#ifndef TARGET_ASM_DECLARE_CONSTANT_NAME +#define TARGET_ASM_DECLARE_CONSTANT_NAME default_asm_declare_constant_name +#endif + #ifndef TARGET_ASM_TTYPE #define TARGET_ASM_TTYPE hook_bool_rtx_false #endif @@ -297,6 +301,7 @@ TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL, \ TARGET_UNWIND_EMIT, \ TARGET_ASM_INTERNAL_LABEL, \ + TARGET_ASM_DECLARE_CONSTANT_NAME, \ TARGET_ASM_TTYPE, \ TARGET_ASM_ASSEMBLE_VISIBILITY, \ TARGET_ASM_FUNCTION_PROLOGUE, \ |