aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-04-16 18:38:28 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-04-16 18:38:28 -0700
commit8cbd5ce01a5ed18a55e06f78933d33279c1817c3 (patch)
treeb8f97ef1e361f31f4ec20f73e93ccccb7059a0b7 /gcc/config
parent96c6931df4d8809e4adf59a64977ac3889f6560b (diff)
downloadgcc-8cbd5ce01a5ed18a55e06f78933d33279c1817c3.zip
gcc-8cbd5ce01a5ed18a55e06f78933d33279c1817c3.tar.gz
gcc-8cbd5ce01a5ed18a55e06f78933d33279c1817c3.tar.bz2
arc.c (arc_encode_section_info): Remove.
* arc.c (arc_encode_section_info): Remove. (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P. (arc_print_operand, arc_print_operand_address): Likewise. * arc.h (EXTRA_CONSTRAINT): Likewise. From-SVN: r65716
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arc/arc.c23
-rw-r--r--gcc/config/arc/arc.h2
2 files changed, 4 insertions, 21 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index bd2afc0..5dcb105 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -94,7 +94,6 @@ static tree arc_handle_interrupt_attribute PARAMS ((tree *, tree, tree, int, boo
static bool arc_assemble_integer PARAMS ((rtx, unsigned int, int));
static void arc_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
static void arc_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
-static void arc_encode_section_info PARAMS ((tree, int));
static void arc_internal_label PARAMS ((FILE *, const char *, unsigned long));
static bool arc_rtx_costs PARAMS ((rtx, int, int, int *));
static int arc_address_cost PARAMS ((rtx));
@@ -113,8 +112,6 @@ static int arc_address_cost PARAMS ((rtx));
#define TARGET_ASM_FUNCTION_EPILOGUE arc_output_function_epilogue
#undef TARGET_ATTRIBUTE_TABLE
#define TARGET_ATTRIBUTE_TABLE arc_attribute_table
-#undef TARGET_ENCODE_SECTION_INFO
-#define TARGET_ENCODE_SECTION_INFO arc_encode_section_info
#undef TARGET_ASM_INTERNAL_LABEL
#define TARGET_ASM_INTERNAL_LABEL arc_internal_label
@@ -1194,7 +1191,7 @@ arc_assemble_integer (x, size, aligned_p)
int aligned_p;
{
if (size == UNITS_PER_WORD && aligned_p
- && ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FLAG (x))
+ && ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FUNCTION_P (x))
|| GET_CODE (x) == LABEL_REF))
{
fputs ("\t.word\t%st(", asm_out_file);
@@ -1777,7 +1774,7 @@ arc_print_operand (file, x, code)
output_operand_lossage ("invalid operand to %%R code");
return;
case 'S' :
- if ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FLAG (x))
+ if ((GET_CODE (x) == SYMBOL_REF && SYMBOL_REF_FUNCTION_P (x))
|| GET_CODE (x) == LABEL_REF)
{
fprintf (file, "%%st(");
@@ -1902,7 +1899,7 @@ arc_print_operand_address (file, addr)
fputs (reg_names[REGNO (addr)], file);
break;
case SYMBOL_REF :
- if (/*???*/ 0 && SYMBOL_REF_FLAG (addr))
+ if (/*???*/ 0 && SYMBOL_REF_FUNCTION_P (addr))
{
fprintf (file, "%%st(");
output_addr_const (file, addr);
@@ -2414,20 +2411,6 @@ arc_va_arg (valist, type)
return addr_rtx;
}
-/* On the ARC, function addresses are not the same as normal addresses.
- Branch to absolute address insns take an address that is right-shifted
- by 2. We encode the fact that we have a function here, and then emit a
- special assembler op when outputting the address. */
-
-static void
-arc_encode_section_info (decl, first)
- tree decl;
- int first ATTRIBUTE_UNUSED;
-{
- if (TREE_CODE (decl) == FUNCTION_DECL)
- SYMBOL_REF_FLAG (XEXP (DECL_RTL (decl), 0)) = 1;
-}
-
/* This is how to output a definition of an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index 583398c..4282f55 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -520,7 +520,7 @@ extern enum reg_class arc_regno_reg_class[FIRST_PSEUDO_REGISTER];
/* ??? This currently isn't used. Waiting for PIC. */
#if 0
#define EXTRA_CONSTRAINT(VALUE, C) \
-((C) == 'R' ? (SYMBOL_REF_FLAG (VALUE) || GET_CODE (VALUE) == LABEL_REF) \
+((C) == 'R' ? (SYMBOL_REF_FUNCTION_P (VALUE) || GET_CODE (VALUE) == LABEL_REF) \
: 0)
#endif