S/390: Remove select_rtx_section
Ulrich Weigand
weigand@i1.informatik.uni-erlangen.de
Tue Sep 21 00:48:00 GMT 2004
Hello,
since the latest literal pool code reorganization, the
select_rtx_section routine is no longer needed; this patch
removes it.
Bootstrapped/regtested on s390-ibm-linux and s390x-ibm-linux.
Committed to mainline.
Bye,
Ulrich
ChangeLog:
* config/s390/s390.c (s390_select_rtx_section): Remove.
(TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
Index: gcc/config/s390/s390.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.c,v
retrieving revision 1.176
diff -c -p -r1.176 s390.c
*** gcc/config/s390/s390.c 20 Sep 2004 17:25:39 -0000 1.176
--- gcc/config/s390/s390.c 20 Sep 2004 21:02:24 -0000
*************** Software Foundation, 59 Temple Place - S
*** 57,64 ****
static bool s390_assemble_integer (rtx, unsigned int, int);
- static void s390_select_rtx_section (enum machine_mode, rtx,
- unsigned HOST_WIDE_INT);
static void s390_encode_section_info (tree, rtx, int);
static bool s390_cannot_force_const_mem (rtx);
static rtx s390_delegitimize_address (rtx);
--- 57,62 ----
*************** static bool s390_pass_by_reference (CUMU
*** 97,105 ****
#undef TARGET_ASM_CLOSE_PAREN
#define TARGET_ASM_CLOSE_PAREN ""
- #undef TARGET_ASM_SELECT_RTX_SECTION
- #define TARGET_ASM_SELECT_RTX_SECTION s390_select_rtx_section
-
#undef TARGET_ENCODE_SECTION_INFO
#define TARGET_ENCODE_SECTION_INFO s390_encode_section_info
--- 95,100 ----
*************** s390_function_profiler (FILE *file, int
*** 7544,7563 ****
}
}
- /* Select section for constant in constant pool. In 32-bit mode,
- constants go in the function section; in 64-bit mode in .rodata. */
-
- static void
- s390_select_rtx_section (enum machine_mode mode ATTRIBUTE_UNUSED,
- rtx x ATTRIBUTE_UNUSED,
- unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
- {
- if (TARGET_CPU_ZARCH)
- readonly_data_section ();
- else
- function_section (current_function_decl);
- }
-
/* Encode symbol attributes (local vs. global, tls model) of a SYMBOL_REF
into its SYMBOL_REF_FLAGS. */
--- 7539,7544 ----
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de
More information about the Gcc-patches
mailing list