mirror of git://gcc.gnu.org/git/gcc.git
Remove SPARC HAVE_AS_REGISTER_PSEUDO_OP
* configure.ac (gcc_cv_as_sparc_register_op): Remove. * configure: Regenerate. * config.in: Regenerate. * config/sparc/sparc.c (sparc_output_scratch_registers): Remove HAVE_AS_REGISTER_PSEUDO_OP guard. * config/sparc/sparc.h (ASM_ARCH64_SPEC): Remove !HAVE_AS_REGISTER_PSEUDO_OP support. (ASM_DECLARE_REGISTER_GLOBAL): Remove HAVE_AS_REGISTER_PSEUDO_OP guard. From-SVN: r265743
This commit is contained in:
parent
ac67752d79
commit
97f5962a05
|
@ -1,3 +1,15 @@
|
|||
2018-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* configure.ac (gcc_cv_as_sparc_register_op): Remove.
|
||||
* configure: Regenerate.
|
||||
* config.in: Regenerate.
|
||||
* config/sparc/sparc.c (sparc_output_scratch_registers): Remove
|
||||
HAVE_AS_REGISTER_PSEUDO_OP guard.
|
||||
* config/sparc/sparc.h (ASM_ARCH64_SPEC): Remove
|
||||
!HAVE_AS_REGISTER_PSEUDO_OP support.
|
||||
(ASM_DECLARE_REGISTER_GLOBAL): Remove HAVE_AS_REGISTER_PSEUDO_OP
|
||||
guard.
|
||||
|
||||
2018-11-02 Richard Biener <rguenther@suse.de>
|
||||
|
||||
* dwarf2out.c (build_abbrev_table): Guard lookup_external_ref call
|
||||
|
|
|
@ -583,12 +583,6 @@
|
|||
#endif
|
||||
|
||||
|
||||
/* Define if your assembler supports .register. */
|
||||
#ifndef USED_FOR_TARGET
|
||||
#undef HAVE_AS_REGISTER_PSEUDO_OP
|
||||
#endif
|
||||
|
||||
|
||||
/* Define if your assembler supports R_PPC_REL16 relocs. */
|
||||
#ifndef USED_FOR_TARGET
|
||||
#undef HAVE_AS_REL16
|
||||
|
|
|
@ -5583,7 +5583,6 @@ sparc_initial_elimination_offset (int to)
|
|||
void
|
||||
sparc_output_scratch_registers (FILE *file ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_AS_REGISTER_PSEUDO_OP
|
||||
int i;
|
||||
|
||||
if (TARGET_ARCH32)
|
||||
|
@ -5604,7 +5603,6 @@ sparc_output_scratch_registers (FILE *file ATTRIBUTE_UNUSED)
|
|||
}
|
||||
if (i == 3) i = 5;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#define PROBE_INTERVAL (1 << STACK_CHECK_PROBE_INTERVAL_EXP)
|
||||
|
|
|
@ -365,11 +365,7 @@ extern enum cmodel sparc_cmodel;
|
|||
This is what GAS uses. Add %(asm_arch) to ASM_SPEC to enable. */
|
||||
|
||||
#define ASM_ARCH32_SPEC "-32"
|
||||
#ifdef HAVE_AS_REGISTER_PSEUDO_OP
|
||||
#define ASM_ARCH64_SPEC "-64 -no-undeclared-regs"
|
||||
#else
|
||||
#define ASM_ARCH64_SPEC "-64"
|
||||
#endif
|
||||
#define ASM_ARCH_DEFAULT_SPEC \
|
||||
(DEFAULT_ARCH32_P ? ASM_ARCH32_SPEC : ASM_ARCH64_SPEC)
|
||||
|
||||
|
@ -1197,7 +1193,6 @@ init_cumulative_args (& (CUM), (FNTYPE), (LIBNAME), (FNDECL));
|
|||
|
||||
extern GTY(()) char sparc_hard_reg_printed[8];
|
||||
|
||||
#ifdef HAVE_AS_REGISTER_PSEUDO_OP
|
||||
#define ASM_DECLARE_REGISTER_GLOBAL(FILE, DECL, REGNO, NAME) \
|
||||
do { \
|
||||
if (TARGET_ARCH64) \
|
||||
|
@ -1216,8 +1211,6 @@ do { \
|
|||
} \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
|
||||
/* Emit rtl for profiling. */
|
||||
#define PROFILE_HOOK(LABEL) sparc_profile_hook (LABEL)
|
||||
|
|
|
@ -25308,38 +25308,6 @@ fi
|
|||
;;
|
||||
|
||||
sparc*-*-*)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
|
||||
$as_echo_n "checking assembler for .register... " >&6; }
|
||||
if ${gcc_cv_as_sparc_register_op+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
gcc_cv_as_sparc_register_op=no
|
||||
if test x$gcc_cv_as != x; then
|
||||
$as_echo '.register %g2, #scratch'[] > conftest.s
|
||||
if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
|
||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; }
|
||||
then
|
||||
gcc_cv_as_sparc_register_op=yes
|
||||
else
|
||||
echo "configure: failed program was" >&5
|
||||
cat conftest.s >&5
|
||||
fi
|
||||
rm -f conftest.o conftest.s
|
||||
fi
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
|
||||
$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
|
||||
if test $gcc_cv_as_sparc_register_op = yes; then
|
||||
|
||||
$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
|
||||
$as_echo_n "checking assembler for -relax option... " >&6; }
|
||||
if ${gcc_cv_as_sparc_relax+:} false; then :
|
||||
|
|
|
@ -4077,11 +4077,6 @@ EOF
|
|||
;;
|
||||
|
||||
sparc*-*-*)
|
||||
gcc_GAS_CHECK_FEATURE([.register], gcc_cv_as_sparc_register_op,,,
|
||||
[.register %g2, #scratch],,
|
||||
[AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
|
||||
[Define if your assembler supports .register.])])
|
||||
|
||||
gcc_GAS_CHECK_FEATURE([-relax option], gcc_cv_as_sparc_relax,,
|
||||
[-relax], [.text],,
|
||||
[AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
|
||||
|
|
Loading…
Reference in New Issue