Remove SPARC HAVE_AS_REGISTER_PSEUDO_OP
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 2 Nov 2018 08:51:04 +0000 (08:51 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 2 Nov 2018 08:51:04 +0000 (08:51 +0000)
* 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
gcc/config.in
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h
gcc/configure
gcc/configure.ac

index 9b583eea0bd3567b16e350877d26836b252fcf3d..0bfeaf58c5f39f52a86e05113883e362b08ce103 100644 (file)
@@ -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
index c0d51c85da89b02ff2e1c55a1673f5e98ac79bd3..67a1e6cfc4cf8021ef5458c5a6bb530d5a8d3305 100644 (file)
 #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
index 23e356c4fbe42be29dcf0c41c6b334d800bffdde..8d982d284f3fbc87b2185dad4628088430e779f9 100644 (file)
@@ -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)
index 8c15e2a958d169956d1849a4794951be048f5e16..e8d5d2add2031aea5593639f89cf88e0982aae7c 100644 (file)
@@ -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
-
 \f
 /* Emit rtl for profiling.  */
 #define PROFILE_HOOK(LABEL)   sparc_profile_hook (LABEL)
index 7201e0b3fc224df936a64727d6f83f11291f8319..a24221d580c26caf16d74cdb87311e3b452d0744 100755 (executable)
     ;;
 
   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 :
index a323e0c393af6b8e36dbbe2fe9599d5f446fa9d6..59585912556b2cdaf4e02d79cec00668759ca6ba 100644 (file)
@@ -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,