From 97f5962a05625a25ff4bfb35e261e810d5c0381c Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 2 Nov 2018 08:51:04 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 12 ++++++++++++ gcc/config.in | 6 ------ gcc/config/sparc/sparc.c | 2 -- gcc/config/sparc/sparc.h | 7 ------- gcc/configure | 32 -------------------------------- gcc/configure.ac | 5 ----- 6 files changed, 12 insertions(+), 52 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b583eea0bd..0bfeaf58c5f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2018-11-02 Rainer Orth + + * 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 * dwarf2out.c (build_abbrev_table): Guard lookup_external_ref call diff --git a/gcc/config.in b/gcc/config.in index c0d51c85da8..67a1e6cfc4c 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -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 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 23e356c4fbe..8d982d284f3 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 8c15e2a958d..e8d5d2add20 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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) diff --git a/gcc/configure b/gcc/configure index 7201e0b3fc2..a24221d580c 100755 --- a/gcc/configure +++ b/gcc/configure @@ -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 : diff --git a/gcc/configure.ac b/gcc/configure.ac index a323e0c393a..59585912556 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -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, -- 2.30.2