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
This commit is contained in:
parent
6c95388f11
commit
7c7dae6542
6 changed files with 587 additions and 544 deletions
|
@ -1,3 +1,16 @@
|
|||
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>
|
||||
|
||||
* input.c (fcache::file_patch): Add comment about lifetime.
|
||||
|
|
|
@ -2783,7 +2783,7 @@ sparc*-*-solaris2*)
|
|||
tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sparc/tso.h"
|
||||
case ${target} in
|
||||
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
|
||||
|
@ -2806,7 +2806,7 @@ sparc64-*-rtems*)
|
|||
tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
|
||||
;;
|
||||
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"
|
||||
tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
|
||||
;;
|
||||
|
|
|
@ -1384,13 +1384,13 @@ sparc_option_override (void)
|
|||
|
||||
#ifndef SPARC_BI_ARCH
|
||||
/* 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",
|
||||
DEFAULT_ARCH32_P ? "-m64" : "-m32");
|
||||
#endif
|
||||
|
||||
/* 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");
|
||||
target_flags |= MASK_LONG_DOUBLE_128;
|
||||
|
@ -11739,7 +11739,7 @@ sparc_file_end (void)
|
|||
static const char *
|
||||
sparc_mangle_type (const_tree type)
|
||||
{
|
||||
if (!TARGET_64BIT
|
||||
if (TARGET_ARCH32
|
||||
&& TYPE_MAIN_VARIANT (type) == long_double_type_node
|
||||
&& TARGET_LONG_DOUBLE_128)
|
||||
return "g";
|
||||
|
|
|
@ -44,12 +44,12 @@ along with GCC; see the file COPYING3. If not see
|
|||
#endif /* sparc64 */
|
||||
#else
|
||||
#ifdef SPARC_BI_ARCH
|
||||
#define TARGET_ARCH32 (! TARGET_64BIT)
|
||||
#define TARGET_ARCH32 (!TARGET_64BIT)
|
||||
#else
|
||||
#define TARGET_ARCH32 (DEFAULT_ARCH32_P)
|
||||
#endif /* SPARC_BI_ARCH */
|
||||
#endif /* IN_LIBGCC2 */
|
||||
#define TARGET_ARCH64 (! TARGET_ARCH32)
|
||||
#define TARGET_ARCH64 (!TARGET_ARCH32)
|
||||
|
||||
/* Code model selection in 64-bit environment.
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue