aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-05-29 17:38:36 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-05-29 17:38:36 -0700
commit67adf6a9dc535b6a68173b2c01a99ee7713c3f29 (patch)
tree3e449b4deebc1ddb35b1bbfdc216b6006948d80d
parent145aacc2e0507dd42a80ae293bbe70f184d08272 (diff)
downloadgcc-67adf6a9dc535b6a68173b2c01a99ee7713c3f29.zip
gcc-67adf6a9dc535b6a68173b2c01a99ee7713c3f29.tar.gz
gcc-67adf6a9dc535b6a68173b2c01a99ee7713c3f29.tar.bz2
biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
* config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value. (TARGET_BI_ARCH): Likewise. * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value. (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT. (TARGET_64BIT_DEFAULT): Default to 0. (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER. From-SVN: r54032
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/i386/biarch64.h4
-rw-r--r--gcc/config/i386/i386.h19
3 files changed, 21 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 888da82..233963d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,14 @@
2002-05-29 Richard Henderson <rth@redhat.com>
+ * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
+ (TARGET_BI_ARCH): Likewise.
+ * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
+ (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
+ (TARGET_64BIT_DEFAULT): Default to 0.
+ (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
+
+2002-05-29 Richard Henderson <rth@redhat.com>
+
* config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
(get_pc_thunk_name): New.
(output_set_got): Use it.
diff --git a/gcc/config/i386/biarch64.h b/gcc/config/i386/biarch64.h
index e2a5d91..2d34698 100644
--- a/gcc/config/i386/biarch64.h
+++ b/gcc/config/i386/biarch64.h
@@ -21,5 +21,5 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define TARGET_64BIT_DEFAULT
-#define TARGET_BI_ARCH
+#define TARGET_64BIT_DEFAULT MASK_64BIT
+#define TARGET_BI_ARCH 1
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index dc51aef..17f1f23 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -192,7 +192,7 @@ extern int target_flags;
#ifdef TARGET_BI_ARCH
#define TARGET_64BIT (target_flags & MASK_64BIT)
#else
-#ifdef TARGET_64BIT_DEFAULT
+#if TARGET_64BIT_DEFAULT
#define TARGET_64BIT 1
#else
#define TARGET_64BIT 0
@@ -384,14 +384,15 @@ extern int x86_prefetch_sse;
{ "no-red-zone", MASK_NO_RED_ZONE, \
N_("Do not use red-zone in the x86-64 code") }, \
SUBTARGET_SWITCHES \
- { "", TARGET_DEFAULT, 0 }}
+ { "", TARGET_DEFAULT | TARGET_64BIT_DEFAULT | TARGET_SUBTARGET_DEFAULT, 0 }}
-#ifdef TARGET_64BIT_DEFAULT
-#define TARGET_DEFAULT (MASK_64BIT | TARGET_SUBTARGET_DEFAULT)
-#else
-#define TARGET_DEFAULT TARGET_SUBTARGET_DEFAULT
+#ifndef TARGET_64BIT_DEFAULT
+#define TARGET_64BIT_DEFAULT 0
#endif
+#define TARGET_DEFAULT MASK_OMIT_LEAF_FRAME_POINTER
+
+
/* This macro is similar to `TARGET_SWITCHES' but defines names of
command options that have values. Its definition is an
initializer with a subgrouping for each command option.
@@ -590,13 +591,13 @@ extern int x86_prefetch_sse;
#ifndef CPP_CPU_SPEC
#ifdef TARGET_BI_ARCH
-#ifdef TARGET_64BIT_DEFAULT
+#if TARGET_64BIT_DEFAULT
#define CPP_CPU_SPEC "%{m32:%(cpp_cpu32)}%{!m32:%(cpp_cpu64)} %(cpp_cpucommon)"
#else
#define CPP_CPU_SPEC "%{m64:%(cpp_cpu64)}%{!m64:%(cpp_cpu32)} %(cpp_cpucommon)"
#endif
#else
-#ifdef TARGET_64BIT_DEFAULT
+#if TARGET_64BIT_DEFAULT
#define CPP_CPU_SPEC "%(cpp_cpu64) %(cpp_cpucommon)"
#else
#define CPP_CPU_SPEC "%(cpp_cpu32) %(cpp_cpucommon)"
@@ -657,7 +658,7 @@ extern int x86_prefetch_sse;
#define DOUBLE_TYPE_SIZE 64
#define LONG_LONG_TYPE_SIZE 64
-#if defined (TARGET_BI_ARCH) || defined (TARGET_64BIT_DEFAULT)
+#if defined (TARGET_BI_ARCH) || TARGET_64BIT_DEFAULT
#define MAX_BITS_PER_WORD 64
#define MAX_LONG_TYPE_SIZE 64
#else