Commit ec94fc00 by Richard Henderson Committed by Richard Henderson

ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.

        * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
        (encode_section_info): Remove.
        * config/ip2k/ip2k-protos.h: Update.

From-SVN: r65730
parent 1b8135a4
2003-04-17 Richard Henderson <rth@redhat.com> 2003-04-17 Richard Henderson <rth@redhat.com>
* config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
(encode_section_info): Remove.
* config/ip2k/ip2k-protos.h: Update.
2003-04-17 Richard Henderson <rth@redhat.com>
* varasm.c (default_encode_section_info): Don't set * varasm.c (default_encode_section_info): Don't set
SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC. SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
* config/i370/i370.c (i370_encode_section_info): Remove. * config/i370/i370.c (i370_encode_section_info): Remove.
......
...@@ -28,7 +28,6 @@ extern int find_one_clear_bit_p PARAMS ((HOST_WIDE_INT)); ...@@ -28,7 +28,6 @@ extern int find_one_clear_bit_p PARAMS ((HOST_WIDE_INT));
#ifdef TREE_CODE #ifdef TREE_CODE
extern void unique_section PARAMS ((tree, int)); extern void unique_section PARAMS ((tree, int));
extern void encode_section_info PARAMS ((tree, int));
extern void asm_output_section_name PARAMS ((FILE *, tree, const char *, extern void asm_output_section_name PARAMS ((FILE *, tree, const char *,
int)); int));
extern int valid_machine_type_attribute PARAMS ((tree, tree, tree, tree)); extern int valid_machine_type_attribute PARAMS ((tree, tree, tree, tree));
......
...@@ -97,9 +97,6 @@ const struct attribute_spec ip2k_attribute_table[]; ...@@ -97,9 +97,6 @@ const struct attribute_spec ip2k_attribute_table[];
#undef TARGET_ASM_UNIQUE_SECTION #undef TARGET_ASM_UNIQUE_SECTION
#define TARGET_ASM_UNIQUE_SECTION unique_section #define TARGET_ASM_UNIQUE_SECTION unique_section
#undef TARGET_ENCODE_SECTION_INFO
#define TARGET_ENCODE_SECTION_INFO encode_section_info
#undef TARGET_ATTRIBUTE_TABLE #undef TARGET_ATTRIBUTE_TABLE
#define TARGET_ATTRIBUTE_TABLE ip2k_attribute_table #define TARGET_ATTRIBUTE_TABLE ip2k_attribute_table
...@@ -756,7 +753,7 @@ is_regfile_address (x) ...@@ -756,7 +753,7 @@ is_regfile_address (x)
switch (GET_CODE (x)) switch (GET_CODE (x))
{ {
case SYMBOL_REF: case SYMBOL_REF:
return ! SYMBOL_REF_FLAG (x); /* Declared as function. */ return ! SYMBOL_REF_FUNCTION_P (x); /* Declared as function. */
case CONST: case CONST:
case PLUS: case PLUS:
x = XEXP (x, 0); x = XEXP (x, 0);
...@@ -3239,20 +3236,6 @@ ip2k_handle_fndecl_attribute (node, name, args, flags, no_add_attrs) ...@@ -3239,20 +3236,6 @@ ip2k_handle_fndecl_attribute (node, name, args, flags, no_add_attrs)
return NULL_TREE; return NULL_TREE;
} }
/* Encode section information about tree DECL. */
void
encode_section_info (decl, first)
tree decl;
int first ATTRIBUTE_UNUSED;
{
if (! DECL_P (decl))
return;
if (TREE_CODE (decl) == FUNCTION_DECL)
SYMBOL_REF_FLAG (XEXP (DECL_RTL (decl), 0)) = 1;
}
/* Outputs to the stdio stream FILE some /* Outputs to the stdio stream FILE some
appropriate text to go at the start of an assembler file. */ appropriate text to go at the start of an assembler file. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment