aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2009-12-25 18:00:16 +0000
committerMichael Eager <eager@eagercon.com>2009-12-25 18:00:16 +0000
commitc4e65d15bb3c8e76699c3de79bd4e964a84d4e9c (patch)
tree0b7cf61b9ba874f37c653993b5a242e8ecf27dbe
parent31e1749927250a78955f70fe3db3e812b77ccd62 (diff)
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/microblaze-4.3.4@155465 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/microblaze/microblaze.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c
index 5a20ea8a35f..f7bb9c57b62 100644
--- a/gcc/config/microblaze/microblaze.c
+++ b/gcc/config/microblaze/microblaze.c
@@ -118,7 +118,7 @@ static int microblaze_address_cost (rtx);
static int microblaze_address_insns (rtx, enum machine_mode);
static void microblaze_asm_constructor (rtx, int);
static void microblaze_asm_destructor (rtx, int);
-static void microblaze_select_section (tree, int,
+static section* microblaze_select_section (tree, int,
unsigned HOST_WIDE_INT);
static bool microblaze_valid_base_register_p (rtx, enum machine_mode, int);
static bool microblaze_valid_index_register_p (rtx, enum machine_mode, int);
@@ -3293,7 +3293,7 @@ microblaze_elf_in_small_data_p (tree decl)
}
-static void
+static section*
microblaze_select_section (tree decl, int reloc, unsigned HOST_WIDE_INT align)
{
switch (categorize_decl_for_section (decl, reloc))
@@ -3304,12 +3304,9 @@ microblaze_select_section (tree decl, int reloc, unsigned HOST_WIDE_INT align)
relaxation/relocation. Currently, turning mergeable sections
into regular readonly sections. */
- switch_to_section (readonly_data_section);
- return;
-
+ return readonly_data_section;
default:
- default_elf_select_section (decl, reloc, align);
- return;
+ return default_elf_select_section (decl, reloc, align);
}
}