diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 16:51:23 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 16:51:23 +0000 |
commit | 31c5440141e0700b9acf71f49f87c3ead2aefa25 (patch) | |
tree | 203e3ac0006800453190507b96d49fa687a15207 /gcc/config/rs6000/sysv4.h | |
parent | b1d3f307aef63da15185e6944d47070b9c4f405b (diff) | |
download | gcc-31c5440141e0700b9acf71f49f87c3ead2aefa25.tar.gz |
2003-04-30 Janis Johnson <janis187@us.ibm.com>
* config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
* config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
(rs6000_xcoff_encode_section_info): Remove.
(current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
(rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
(small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
Use SYMBOL_REF_FLAGS.
(rs6000_elf_encode_section_info): Call default_encode_section_info for
generic flags, use SYMBOL_REF_FLAGS; code cleanups.
* sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
(SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
* xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
(ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/sysv4.h')
-rw-r--r-- | gcc/config/rs6000/sysv4.h | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 3e7d711942e..8fd4f45a320 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -766,7 +766,6 @@ extern int fixuplabelno; #define DBX_DEBUGGING_INFO 1 #define TARGET_ENCODE_SECTION_INFO rs6000_elf_encode_section_info -#define TARGET_STRIP_NAME_ENCODING rs6000_elf_strip_name_encoding #define TARGET_IN_SMALL_DATA_P rs6000_elf_in_small_data_p #define TARGET_SECTION_TYPE_FLAGS rs6000_elf_section_type_flags @@ -775,25 +774,8 @@ extern int fixuplabelno; #define RS6000_OUTPUT_BASENAME(FILE, NAME) \ assemble_name (FILE, NAME) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ - -/* Override elfos.h definition. */ -#undef ASM_OUTPUT_LABELREF -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ -do { \ - const char *_name = NAME; \ - if (*_name == '@') \ - _name++; \ - \ - if (*_name == '*') \ - fprintf (FILE, "%s", _name + 1); \ - else \ - asm_fprintf (FILE, "%U%s", _name); \ -} while (0) - -/* But, to make this work, we have to output the stabs for the function - name *first*... */ +/* We have to output the stabs for the function name *first*, before + outputting its label. */ #define DBX_FUNCTION_FIRST @@ -1392,3 +1374,9 @@ ncrtn.o%s" /* Generate entries in .fixup for relocatable addresses. */ #define RELOCATABLE_NEEDS_FIXUP + +/* Define target-specific symbol_ref flags, beginning with + SYMBOL_REF_FLAG_DEP. */ +#define SYMBOL_FLAG_SMALL_V4 (SYMBOL_FLAG_MACH_DEP << 0) +#define SYMBOL_REF_SMALL_V4_P(RTX) \ + ((SYMBOL_REF_FLAGS (RTX) & SYMBOL_FLAG_SMALL_V4) != 0) |