Commit 7c7dae65 by Eric Botcazou Committed by Eric Botcazou

config.gcc (sparc*-*-solaris2*): Adjust.

	* config.gcc (sparc*-*-solaris2*): Adjust.
	(sparc64-*-linux*): Likewise.
	* config/sparc/default-64.h: Rename to...
	* config/sparc/default64.h: ...this.
	* config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
	with TARGET_ARCH64.
	(sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
	* config/sparc/sparc.h: Minor tweaks.
	* config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
	TARGET_ARCH32 throughout.  Minor various tweaks throughout.

From-SVN: r241538
parent 6c95388f
2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
* config.gcc (sparc*-*-solaris2*): Adjust.
(sparc64-*-linux*): Likewise.
* config/sparc/default-64.h: Rename to...
* config/sparc/default64.h: ...this.
* config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
with TARGET_ARCH64.
(sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
* config/sparc/sparc.h: Minor tweaks.
* config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
TARGET_ARCH32 throughout. Minor various tweaks throughout.
2016-10-25 David Malcolm <dmalcolm@redhat.com> 2016-10-25 David Malcolm <dmalcolm@redhat.com>
* input.c (fcache::file_patch): Add comment about lifetime. * input.c (fcache::file_patch): Add comment about lifetime.
......
...@@ -2783,7 +2783,7 @@ sparc*-*-solaris2*) ...@@ -2783,7 +2783,7 @@ sparc*-*-solaris2*)
tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sparc/tso.h" tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sparc/tso.h"
case ${target} in case ${target} in
sparc64-*-* | sparcv9-*-*) sparc64-*-* | sparcv9-*-*)
tm_file="sparc/default-64.h ${tm_file}" tm_file="sparc/default64.h ${tm_file}"
;; ;;
*) *)
test x$with_cpu != x || with_cpu=v9 test x$with_cpu != x || with_cpu=v9
...@@ -2806,7 +2806,7 @@ sparc64-*-rtems*) ...@@ -2806,7 +2806,7 @@ sparc64-*-rtems*)
tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64" tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
;; ;;
sparc64-*-linux*) sparc64-*-linux*)
tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h" tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default64.h sparc/linux64.h sparc/tso.h"
extra_options="${extra_options} sparc/long-double-switch.opt" extra_options="${extra_options} sparc/long-double-switch.opt"
tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64" tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
;; ;;
......
...@@ -1384,13 +1384,13 @@ sparc_option_override (void) ...@@ -1384,13 +1384,13 @@ sparc_option_override (void)
#ifndef SPARC_BI_ARCH #ifndef SPARC_BI_ARCH
/* Check for unsupported architecture size. */ /* Check for unsupported architecture size. */
if (! TARGET_64BIT != DEFAULT_ARCH32_P) if (!TARGET_64BIT != DEFAULT_ARCH32_P)
error ("%s is not supported by this configuration", error ("%s is not supported by this configuration",
DEFAULT_ARCH32_P ? "-m64" : "-m32"); DEFAULT_ARCH32_P ? "-m64" : "-m32");
#endif #endif
/* We force all 64bit archs to use 128 bit long double */ /* We force all 64bit archs to use 128 bit long double */
if (TARGET_64BIT && ! TARGET_LONG_DOUBLE_128) if (TARGET_ARCH64 && !TARGET_LONG_DOUBLE_128)
{ {
error ("-mlong-double-64 not allowed with -m64"); error ("-mlong-double-64 not allowed with -m64");
target_flags |= MASK_LONG_DOUBLE_128; target_flags |= MASK_LONG_DOUBLE_128;
...@@ -11739,7 +11739,7 @@ sparc_file_end (void) ...@@ -11739,7 +11739,7 @@ sparc_file_end (void)
static const char * static const char *
sparc_mangle_type (const_tree type) sparc_mangle_type (const_tree type)
{ {
if (!TARGET_64BIT if (TARGET_ARCH32
&& TYPE_MAIN_VARIANT (type) == long_double_type_node && TYPE_MAIN_VARIANT (type) == long_double_type_node
&& TARGET_LONG_DOUBLE_128) && TARGET_LONG_DOUBLE_128)
return "g"; return "g";
......
...@@ -44,12 +44,12 @@ along with GCC; see the file COPYING3. If not see ...@@ -44,12 +44,12 @@ along with GCC; see the file COPYING3. If not see
#endif /* sparc64 */ #endif /* sparc64 */
#else #else
#ifdef SPARC_BI_ARCH #ifdef SPARC_BI_ARCH
#define TARGET_ARCH32 (! TARGET_64BIT) #define TARGET_ARCH32 (!TARGET_64BIT)
#else #else
#define TARGET_ARCH32 (DEFAULT_ARCH32_P) #define TARGET_ARCH32 (DEFAULT_ARCH32_P)
#endif /* SPARC_BI_ARCH */ #endif /* SPARC_BI_ARCH */
#endif /* IN_LIBGCC2 */ #endif /* IN_LIBGCC2 */
#define TARGET_ARCH64 (! TARGET_ARCH32) #define TARGET_ARCH64 (!TARGET_ARCH32)
/* Code model selection in 64-bit environment. /* Code model selection in 64-bit environment.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment