aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ns32k/ns32k.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-04-17 09:25:19 +0000
committerRichard Henderson <rth@redhat.com>2003-04-17 09:25:19 +0000
commit2c3a0d4742ce40fe8c4473a2bc13be5fa7d8bd1d (patch)
tree4c63ade27e18583b3f79205a51f27b1d6e14a0b2 /gcc/config/ns32k/ns32k.c
parentfd490f386ba2116b0f0d5946ecdebd9edc970294 (diff)
* config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
(global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P. (print_operand_address): Likewise. * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument. * config/ns32k/ns32k.c (expand_block_move): Don't check flag_unroll_loops. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@65733 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ns32k/ns32k.c')
-rw-r--r--gcc/config/ns32k/ns32k.c35
1 files changed, 4 insertions, 31 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c
index 73b16df9058..153a6a32a2c 100644
--- a/gcc/config/ns32k/ns32k.c
+++ b/gcc/config/ns32k/ns32k.c
@@ -71,7 +71,6 @@ static tree ns32k_handle_fntype_attribute PARAMS ((tree *, tree, tree, int, bool
const struct attribute_spec ns32k_attribute_table[];
static void ns32k_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
static void ns32k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
-static void ns32k_encode_section_info PARAMS ((tree, int));
static bool ns32k_rtx_costs PARAMS ((rtx, int, int, int *));
static int ns32k_address_cost PARAMS ((rtx));
@@ -91,8 +90,6 @@ static int ns32k_address_cost PARAMS ((rtx));
#define TARGET_ASM_FUNCTION_PROLOGUE ns32k_output_function_prologue
#undef TARGET_ASM_FUNCTION_EPILOGUE
#define TARGET_ASM_FUNCTION_EPILOGUE ns32k_output_function_epilogue
-#undef TARGET_ENCODE_SECTION_INFO
-#define TARGET_ENCODE_SECTION_INFO ns32k_encode_section_info
#undef TARGET_RTX_COSTS
#define TARGET_RTX_COSTS ns32k_rtx_costs
@@ -887,7 +884,7 @@ expand_block_move (operands)
if (words)
{
- if (words < 3 || flag_unroll_loops)
+ if (words < 3)
{
int offset = 0;
@@ -1003,7 +1000,7 @@ global_symbolic_reference_mentioned_p (op, f)
if (GET_CODE (op) == SYMBOL_REF)
{
- if (! SYMBOL_REF_FLAG (op))
+ if (! SYMBOL_REF_LOCAL_P (op))
return 1;
else
return 0;
@@ -1312,8 +1309,7 @@ print_operand_address (file, addr)
indexexp = tmp;
break;
case SYMBOL_REF:
- if (flag_pic && ! CONSTANT_POOL_ADDRESS_P (tmp)
- && ! SYMBOL_REF_FLAG (tmp))
+ if (flag_pic && ! SYMBOL_REF_LOCAL_P (tmp))
{
if (base)
{
@@ -1345,12 +1341,7 @@ print_operand_address (file, addr)
if (GET_CODE (off) != CONST_INT)
abort ();
- if (CONSTANT_POOL_ADDRESS_P (sym)
- || SYMBOL_REF_FLAG (sym))
- {
- SYMBOL_REF_FLAG (tmp) = 1;
- }
- else
+ if (! SYMBOL_REF_LOCAL_P (sym))
{
if (base)
{
@@ -1601,21 +1592,3 @@ output_move_dconst (n, s)
strcat (r, s);
return r;
}
-
-/* If using PIC, mark a SYMBOL_REF for a non-global symbol or a code
- symbol. These symbols are referenced via pc and not via sb. */
-
-static void
-ns32k_encode_section_info (decl, first)
- tree decl;
- int first ATTRIBUTE_UNUSED;
-{
- if (flag_pic)
- {
- rtx rtl = (TREE_CODE_CLASS (TREE_CODE (decl)) != 'd'
- ? TREE_CST_RTL (decl) : DECL_RTL (decl));
- SYMBOL_REF_FLAG (XEXP (rtl, 0))
- = (TREE_CODE_CLASS (TREE_CODE (decl)) != 'd'
- || ! TREE_PUBLIC (decl));
- }
-}