From 4f4f4f542a6e3b907cbc9575c1cf4fd66e159cf6 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 5 Sep 2011 22:23:40 +0000 Subject: sol2-64.h: Move ... * config/sparc/sol2-64.h: Move ... * config/sparc/default-64.h: ... to here. Update comment. * config.gcc: Update Solaris sparc to use default-64.h, also prefix this header into the list on sparc64-*-linux. * config/sparc/linux64.h (TARGET_DEFAULT): Only override if TARGET_64BIT_DEFAULT is defined. Remove commented out reference to MASK_HARD_QUAD. From-SVN: r178558 --- gcc/config/sparc/default-64.h | 22 ++++++++++++++++++++++ gcc/config/sparc/linux64.h | 15 +++------------ gcc/config/sparc/sol2-64.h | 22 ---------------------- 3 files changed, 25 insertions(+), 34 deletions(-) create mode 100644 gcc/config/sparc/default-64.h delete mode 100644 gcc/config/sparc/sol2-64.h (limited to 'gcc/config/sparc') diff --git a/gcc/config/sparc/default-64.h b/gcc/config/sparc/default-64.h new file mode 100644 index 0000000..ae884ea --- /dev/null +++ b/gcc/config/sparc/default-64.h @@ -0,0 +1,22 @@ +/* Definitions of target machine for GCC, for bi-arch SPARC, + defaulting to 64-bit code generation. + + Copyright (C) 1999, 2010, 2011 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#define TARGET_64BIT_DEFAULT 1 diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index c4997bb..3c83d2d 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -31,20 +31,11 @@ along with GCC; see the file COPYING3. If not see } \ while (0) -#if TARGET_CPU_DEFAULT == TARGET_CPU_v9 \ - || TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc \ - || TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3 \ - || TARGET_CPU_DEFAULT == TARGET_CPU_niagara \ - || TARGET_CPU_DEFAULT == TARGET_CPU_niagara2 \ - || TARGET_CPU_DEFAULT == TARGET_CPU_niagara3 \ - || TARGET_CPU_DEFAULT == TARGET_CPU_niagara4 -/* A 64 bit v9 compiler with stack-bias, - in a Medium/Low code model environment. */ - +#ifdef TARGET_64BIT_DEFAULT #undef TARGET_DEFAULT #define TARGET_DEFAULT \ - (MASK_V9 + MASK_PTR64 + MASK_64BIT /* + MASK_HARD_QUAD */ \ - + MASK_STACK_BIAS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128) + (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_STACK_BIAS + \ + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128) #endif /* This must be v9a not just v9 because by default we enable diff --git a/gcc/config/sparc/sol2-64.h b/gcc/config/sparc/sol2-64.h deleted file mode 100644 index 41e2281..0000000 --- a/gcc/config/sparc/sol2-64.h +++ /dev/null @@ -1,22 +0,0 @@ -/* Definitions of target machine for GCC, for bi-arch SPARC - running Solaris 2, defaulting to 64-bit code generation. - - Copyright (C) 1999, 2010, 2011 Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING3. If not see -. */ - -#define TARGET_64BIT_DEFAULT 1 -- cgit v1.1