This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] use symbol_ref flags for rs6000
On Fri, Apr 25, 2003 at 05:26:50PM -0700, Janis Johnson wrote:
> * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
> * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
> (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
> (rs6000_output_mi_thunk): Remove if that is always false; 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 (ASM_DECLARE_FUNCTION_NAME): Use SYMBOL_FLAG_LOCAL.
Ok, except,
> {
> - if (!first)
> - return;
> + default_encode_section_info (decl, rtl, first);
>
> if (TREE_CODE (decl) == FUNCTION_DECL)
> {
> [symbol name frobbing code]
> }
You still need to check first around this one block.
r~