+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
#ifdef TREE_CODE
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 *,
int));
extern int valid_machine_type_attribute PARAMS ((tree, tree, tree, tree));
#undef TARGET_ASM_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
#define TARGET_ATTRIBUTE_TABLE ip2k_attribute_table
switch (GET_CODE (x))
{
case SYMBOL_REF:
- return ! SYMBOL_REF_FLAG (x); /* Declared as function. */
+ return ! SYMBOL_REF_FUNCTION_P (x); /* Declared as function. */
case CONST:
case PLUS:
x = XEXP (x, 0);
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
appropriate text to go at the start of an assembler file. */