aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@wasabisystems.com>2004-03-10 00:17:36 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2004-03-10 00:17:36 +0000
commit9acd4a03dd2135cfe47c6c9f23c3d98181004fa4 (patch)
treefa0ff5561398e46327d7b72534f74cfe5b34fdb5 /gcc/config/sparc/sparc.c
parentb86f05b692ab2084facc03c49ff231ef1b9388c6 (diff)
downloadgcc-9acd4a03dd2135cfe47c6c9f23c3d98181004fa4.zip
gcc-9acd4a03dd2135cfe47c6c9f23c3d98181004fa4.tar.gz
gcc-9acd4a03dd2135cfe47c6c9f23c3d98181004fa4.tar.bz2
system.h (SUNOS4_SHARED_LIBRARIES): Poison.
* system.h (SUNOS4_SHARED_LIBRARIES): Poison. * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code. * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define. * config/sparc/sparc.c (sparc_aout_select_section): Remove. (sparc_aout_select_rtx_section): Don't check SUNOS4_SHARED_LIBRARIES. * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define. From-SVN: r79216
Diffstat (limited to 'gcc/config/sparc/sparc.c')
-rw-r--r--gcc/config/sparc/sparc.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index e47bed2..8113f4b 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -160,8 +160,6 @@ static void sparc_function_prologue (FILE *, HOST_WIDE_INT, int);
#ifdef OBJECT_FORMAT_ELF
static void sparc_elf_asm_named_section (const char *, unsigned int);
#endif
-static void sparc_aout_select_section (tree, int, unsigned HOST_WIDE_INT)
- ATTRIBUTE_UNUSED;
static void sparc_aout_select_rtx_section (enum machine_mode, rtx,
unsigned HOST_WIDE_INT)
ATTRIBUTE_UNUSED;
@@ -8125,16 +8123,6 @@ sparc_init_libfuncs (void)
gofast_maybe_init_libfuncs ();
}
-/* ??? Similar to the standard section selection, but force reloc-y-ness
- if SUNOS4_SHARED_LIBRARIES. Unclear why this helps (as opposed to
- pretending PIC always on), but that's what the old code did. */
-
-static void
-sparc_aout_select_section (tree t, int reloc, unsigned HOST_WIDE_INT align)
-{
- default_select_section (t, reloc | SUNOS4_SHARED_LIBRARIES, align);
-}
-
/* Use text section for a constant unless we need more alignment than
that offers. */
@@ -8143,8 +8131,7 @@ sparc_aout_select_rtx_section (enum machine_mode mode, rtx x,
unsigned HOST_WIDE_INT align)
{
if (align <= MAX_TEXT_ALIGN
- && ! (flag_pic && (symbolic_operand (x, mode)
- || SUNOS4_SHARED_LIBRARIES)))
+ && ! (flag_pic && symbolic_operand (x, mode)))
readonly_data_section ();
else
data_section ();