aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/iq2000
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-09-30 15:18:14 +0000
committerNick Clifton <nickc@gcc.gnu.org>2019-09-30 15:18:14 +0000
commit4baad9863a5df7ec01b42afecd4170f4d58a1aac (patch)
treea8c1740c9cecb1c635a02ec79df4fecf545cc3f6 /gcc/config/iq2000
parent20fa157e674d0175f8c2717683462cdaded4d5be (diff)
downloadgcc-4baad9863a5df7ec01b42afecd4170f4d58a1aac.zip
gcc-4baad9863a5df7ec01b42afecd4170f4d58a1aac.tar.gz
gcc-4baad9863a5df7ec01b42afecd4170f4d58a1aac.tar.bz2
Remove the iq2000_select_section function the iq2000 backend - it never provided any useful functionality.
PR target/59205 * config/iq2000/iq2000.c (iq2000_select_section): Delete. (TARGET_ASM_SELECT_SECTION): Remove definition. (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition. From-SVN: r276304
Diffstat (limited to 'gcc/config/iq2000')
-rw-r--r--gcc/config/iq2000/iq2000.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c
index 59c5132..bccafd5 100644
--- a/gcc/config/iq2000/iq2000.c
+++ b/gcc/config/iq2000/iq2000.c
@@ -157,7 +157,6 @@ static void iq2000_setup_incoming_varargs (cumulative_args_t,
static bool iq2000_rtx_costs (rtx, machine_mode, int, int, int *, bool);
static int iq2000_address_cost (rtx, machine_mode, addr_space_t,
bool);
-static section *iq2000_select_section (tree, int, unsigned HOST_WIDE_INT);
static rtx iq2000_legitimize_address (rtx, rtx, machine_mode);
static bool iq2000_pass_by_reference (cumulative_args_t,
const function_arg_info &);
@@ -197,17 +196,10 @@ static HOST_WIDE_INT iq2000_starting_frame_offset (void);
#define TARGET_RTX_COSTS iq2000_rtx_costs
#undef TARGET_ADDRESS_COST
#define TARGET_ADDRESS_COST iq2000_address_cost
-#undef TARGET_ASM_SELECT_SECTION
-#define TARGET_ASM_SELECT_SECTION iq2000_select_section
#undef TARGET_LEGITIMIZE_ADDRESS
#define TARGET_LEGITIMIZE_ADDRESS iq2000_legitimize_address
-/* The assembler supports switchable .bss sections, but
- iq2000_select_section doesn't yet make use of them. */
-#undef TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
-#define TARGET_HAVE_SWITCHABLE_BSS_SECTIONS false
-
#undef TARGET_PRINT_OPERAND
#define TARGET_PRINT_OPERAND iq2000_print_operand
#undef TARGET_PRINT_OPERAND_ADDRESS
@@ -2201,48 +2193,6 @@ iq2000_select_rtx_section (machine_mode mode, rtx x ATTRIBUTE_UNUSED,
return mergeable_constant_section (mode, align, 0);
}
-/* Choose the section to use for DECL. RELOC is true if its value contains
- any relocatable expression.
-
- Some of the logic used here needs to be replicated in
- ENCODE_SECTION_INFO in iq2000.h so that references to these symbols
- are done correctly. */
-
-static section *
-iq2000_select_section (tree decl, int reloc ATTRIBUTE_UNUSED,
- unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED)
-{
- if (TARGET_EMBEDDED_DATA)
- {
- /* For embedded applications, always put an object in read-only data
- if possible, in order to reduce RAM usage. */
- if ((TREE_CODE (decl) == VAR_DECL
- && TREE_READONLY (decl) && !TREE_SIDE_EFFECTS (decl)
- && DECL_INITIAL (decl)
- && (DECL_INITIAL (decl) == error_mark_node
- || TREE_CONSTANT (DECL_INITIAL (decl))))
- /* Deal with calls from output_constant_def_contents. */
- || TREE_CODE (decl) != VAR_DECL)
- return readonly_data_section;
- else
- return data_section;
- }
- else
- {
- /* For hosted applications, always put an object in small data if
- possible, as this gives the best performance. */
- if ((TREE_CODE (decl) == VAR_DECL
- && TREE_READONLY (decl) && !TREE_SIDE_EFFECTS (decl)
- && DECL_INITIAL (decl)
- && (DECL_INITIAL (decl) == error_mark_node
- || TREE_CONSTANT (DECL_INITIAL (decl))))
- /* Deal with calls from output_constant_def_contents. */
- || TREE_CODE (decl) != VAR_DECL)
- return readonly_data_section;
- else
- return data_section;
- }
-}
/* Return register to use for a function return value with VALTYPE for function
FUNC. */