diff options
author | Richard Henderson <rth@redhat.com> | 2003-04-17 02:25:19 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-04-17 02:25:19 -0700 |
commit | e95ef1878f06e85f88073db03b7677f3c2c640f8 (patch) | |
tree | 4c63ade27e18583b3f79205a51f27b1d6e14a0b2 /gcc/config/ns32k | |
parent | 6cd4a76401d216061b1b3d6cd30d7f924b5ee321 (diff) | |
download | gcc-e95ef1878f06e85f88073db03b7677f3c2c640f8.zip gcc-e95ef1878f06e85f88073db03b7677f3c2c640f8.tar.gz gcc-e95ef1878f06e85f88073db03b7677f3c2c640f8.tar.bz2 |
ns32k.c (ns32k_encode_section_info): Remove.
* 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.
From-SVN: r65733
Diffstat (limited to 'gcc/config/ns32k')
-rw-r--r-- | gcc/config/ns32k/ns32k.c | 35 | ||||
-rw-r--r-- | gcc/config/ns32k/ns32k.h | 5 |
2 files changed, 7 insertions, 33 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c index 73b16df..153a6a3 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)); - } -} diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h index 9f2c026..81343c4 100644 --- a/gcc/config/ns32k/ns32k.h +++ b/gcc/config/ns32k/ns32k.h @@ -474,8 +474,9 @@ enum reg_class /* LONG_REGS are registers which can only hold double precision floats * and can only be accessable by long float instructions. */ -#define CANNOT_CHANGE_MODE_CLASS(FROM, TO) \ - (GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO) ? LONG_REGS : NO_REGS) +#define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \ + (GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO) \ + ? reg_classes_intersect_p (LONG_REGS, CLASS) : 0) /* The same information, inverted: Return the class number of the smallest class containing |