diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-17 07:34:34 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-17 07:34:34 +0000 |
commit | 4c2ba6030ce72a7930faf7ebc19d48a368ae6326 (patch) | |
tree | 0630a6f75e02a0384bb1d5521d6742074c9df781 /gcc/config/i370 | |
parent | 9b6d7c350057dd5195526fb497293823570828cb (diff) | |
download | gcc-4c2ba6030ce72a7930faf7ebc19d48a368ae6326.tar.gz |
* varasm.c (default_encode_section_info): Don't set
SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
* config/i370/i370.c (i370_encode_section_info): Remove.
* config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
(PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
* config/i370/i370.md (movsi): Likewise.
* config/i370/t-i370: Add missing backslash.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i370')
-rw-r--r-- | gcc/config/i370/i370.c | 14 | ||||
-rw-r--r-- | gcc/config/i370/i370.h | 14 | ||||
-rw-r--r-- | gcc/config/i370/i370.md | 4 | ||||
-rw-r--r-- | gcc/config/i370/t-i370 | 2 |
4 files changed, 10 insertions, 24 deletions
diff --git a/gcc/config/i370/i370.c b/gcc/config/i370/i370.c index e83fa7ad7f1..d5ab6ce303d 100644 --- a/gcc/config/i370/i370.c +++ b/gcc/config/i370/i370.c @@ -110,7 +110,6 @@ static void i370_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT)); #ifdef LONGEXTERNAL static int mvs_hash_alias PARAMS ((const char *)); #endif -static void i370_encode_section_info PARAMS ((tree, int)); static void i370_internal_label PARAMS ((FILE *, const char *, unsigned long)); static bool i370_rtx_costs PARAMS ((rtx, int, int, int *)); @@ -314,8 +313,6 @@ static const unsigned char ebcasc[256] = #define TARGET_ASM_FUNCTION_PROLOGUE i370_output_function_prologue #undef TARGET_ASM_FUNCTION_EPILOGUE #define TARGET_ASM_FUNCTION_EPILOGUE i370_output_function_epilogue -#undef TARGET_ENCODE_SECTION_INFO -#define TARGET_ENCODE_SECTION_INFO i370_encode_section_info #undef TARGET_ASM_INTERNAL_LABEL #define TARGET_ASM_INTERNAL_LABEL i370_internal_label #undef TARGET_RTX_COSTS @@ -1594,17 +1591,6 @@ i370_output_function_epilogue (file, l) fprintf (file, "\tDC\tA(PG%d)\n", i); } -/* Mark external references. */ - -static void -i370_encode_section_info (decl, first) - tree decl; - int first ATTRIBUTE_UNUSED; -{ - if (DECL_EXTERNAL (decl) && TREE_PUBLIC (decl)) - SYMBOL_REF_FLAG (XEXP (DECL_RTL (decl), 0)) = 1; -} - static void i370_internal_label (stream, prefix, labelno) FILE *stream; diff --git a/gcc/config/i370/i370.h b/gcc/config/i370/i370.h index 61f296d71a5..a3db42e63ca 100644 --- a/gcc/config/i370/i370.h +++ b/gcc/config/i370/i370.h @@ -700,7 +700,7 @@ enum reg_class && GET_CODE (XEXP (XEXP (X, 0), 0)) == LABEL_REF) \ || (GET_CODE (X) == CONST \ && GET_CODE (XEXP (XEXP (X, 0), 0)) == SYMBOL_REF \ - && !SYMBOL_REF_FLAG (XEXP (XEXP (X, 0), 0)))) + && !SYMBOL_REF_EXTERNAL_P (XEXP (XEXP (X, 0), 0)))) /* Nonzero if the constant value X is a legitimate general operand. It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE. */ @@ -1266,7 +1266,7 @@ enum reg_class case SYMBOL_REF: \ case LABEL_REF: \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (XV)) fprintf (FILE, "=V("); \ + if (SYMBOL_REF_EXTERNAL_P (XV)) fprintf (FILE, "=V("); \ else fprintf (FILE, "=A("); \ output_addr_const (FILE, XV); \ fprintf (FILE, ")"); \ @@ -1356,7 +1356,7 @@ enum reg_class && GET_CODE (XEXP (XEXP (XV, 0), 0)) == SYMBOL_REF) \ { \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (XEXP (XEXP (XV, 0), 0))) \ + if (SYMBOL_REF_EXTERNAL_P (XEXP (XEXP (XV, 0), 0))) \ { \ fprintf (FILE, "=V("); \ ASM_OUTPUT_LABELREF (FILE, \ @@ -1467,7 +1467,7 @@ enum reg_class break; \ default: \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (ADDR)) fprintf (FILE, "=V("); \ + if (SYMBOL_REF_EXTERNAL_P (ADDR)) fprintf (FILE, "=V("); \ else fprintf (FILE, "=A("); \ output_addr_const (FILE, ADDR); \ fprintf (FILE, ")"); \ @@ -1560,7 +1560,7 @@ enum reg_class case SYMBOL_REF: \ case LABEL_REF: \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (XV)) fprintf (FILE, "=V("); \ + if (SYMBOL_REF_EXTERNAL_P (XV)) fprintf (FILE, "=V("); \ else fprintf (FILE, "=A("); \ output_addr_const (FILE, XV); \ fprintf (FILE, ")"); \ @@ -1650,7 +1650,7 @@ enum reg_class && GET_CODE (XEXP (XEXP (XV, 0), 0)) == SYMBOL_REF) \ { \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (XEXP (XEXP (XV, 0), 0))) \ + if (SYMBOL_REF_EXTERNAL_P (XEXP (XEXP (XV, 0), 0))) \ { \ fprintf (FILE, "=V("); \ ASM_OUTPUT_LABELREF (FILE, \ @@ -1765,7 +1765,7 @@ abort(); \ break; \ default: \ mvs_page_lit += 4; \ - if (SYMBOL_REF_FLAG (ADDR)) fprintf (FILE, "=V("); \ + if (SYMBOL_REF_EXTERNAL_P (ADDR)) fprintf (FILE, "=V("); \ else fprintf (FILE, "=A("); \ output_addr_const (FILE, ADDR); \ fprintf (FILE, ")"); \ diff --git a/gcc/config/i370/i370.md b/gcc/config/i370/i370.md index 9564cb3001e..5bdbec80abe 100644 --- a/gcc/config/i370/i370.md +++ b/gcc/config/i370/i370.md @@ -855,7 +855,7 @@ check_label_emit (); ; op0 = operands[0]; ; if (GET_CODE (op0) == CONST ; && GET_CODE (XEXP (XEXP (op0, 0), 0)) == SYMBOL_REF -; && SYMBOL_REF_FLAG (XEXP (XEXP (op0, 0), 0))) +; && SYMBOL_REF_EXTERNAL_P (XEXP (XEXP (op0, 0), 0))) ; { ; op0 = gen_rtx_MEM (SImode, copy_to_mode_reg (SImode, XEXP (op0, 0))); ; } @@ -863,7 +863,7 @@ check_label_emit (); ; op1 = operands[1]; ; if (GET_CODE (op1) == CONST ; && GET_CODE (XEXP (XEXP (op1, 0), 0)) == SYMBOL_REF -; && SYMBOL_REF_FLAG (XEXP (XEXP (op1, 0), 0))) +; && SYMBOL_REF_EXTERNAL_P (XEXP (XEXP (op1, 0), 0))) ; { ; op1 = gen_rtx_MEM (SImode, copy_to_mode_reg (SImode, XEXP (op1, 0))); ; } diff --git a/gcc/config/i370/t-i370 b/gcc/config/i370/t-i370 index 96138a1c372..fccd1632fde 100644 --- a/gcc/config/i370/t-i370 +++ b/gcc/config/i370/t-i370 @@ -1,3 +1,3 @@ -i370-c.o: $(srcdir)/config/i370/i370-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h +i370-c.o: $(srcdir)/config/i370/i370-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(TREE_H) toplev.h $(CPPLIB_H) c-pragma.h $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i370/i370-c.c |