aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/i386.h')
-rw-r--r--gcc/config/i386/i386.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 4d2895f9726..154f74e415d 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -136,6 +136,7 @@ extern const struct processor_costs *ix86_cost;
#define TARGET_K8 (ix86_tune == PROCESSOR_K8)
#define TARGET_ATHLON_K8 (TARGET_K8 || TARGET_ATHLON)
#define TARGET_NOCONA (ix86_tune == PROCESSOR_NOCONA)
+#define TARGET_WOODCREST (ix86_tune == PROCESSOR_WOODCREST)
#define TARGET_GENERIC32 (ix86_tune == PROCESSOR_GENERIC32)
#define TARGET_GENERIC64 (ix86_tune == PROCESSOR_GENERIC64)
#define TARGET_GENERIC (TARGET_GENERIC32 || TARGET_GENERIC64)
@@ -374,6 +375,8 @@ extern int x86_prefetch_sse;
builtin_define ("__tune_pentium4__"); \
else if (TARGET_NOCONA) \
builtin_define ("__tune_nocona__"); \
+ else if (TARGET_WOODCREST) \
+ builtin_define ("__tune_woodcrest__"); \
\
if (TARGET_MMX) \
builtin_define ("__MMX__"); \
@@ -447,6 +450,11 @@ extern int x86_prefetch_sse;
builtin_define ("__nocona"); \
builtin_define ("__nocona__"); \
} \
+ else if (ix86_arch == PROCESSOR_WOODCREST) \
+ { \
+ builtin_define ("__woodcrest"); \
+ builtin_define ("__woodcrest__"); \
+ } \
} \
while (0)
@@ -467,14 +475,15 @@ extern int x86_prefetch_sse;
#define TARGET_CPU_DEFAULT_pentium_m 14
#define TARGET_CPU_DEFAULT_prescott 15
#define TARGET_CPU_DEFAULT_nocona 16
-#define TARGET_CPU_DEFAULT_generic 17
+#define TARGET_CPU_DEFAULT_woodcrest 17
+#define TARGET_CPU_DEFAULT_generic 18
#define TARGET_CPU_DEFAULT_NAMES {"i386", "i486", "pentium", "pentium-mmx",\
"pentiumpro", "pentium2", "pentium3", \
"pentium4", "k6", "k6-2", "k6-3",\
"athlon", "athlon-4", "k8", \
"pentium-m", "prescott", "nocona", \
- "generic"}
+ "woodcrest", "generic"}
#ifndef CC1_SPEC
#define CC1_SPEC "%(cc1_cpu) "
@@ -785,7 +794,7 @@ do { \
fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
} \
- if (! TARGET_MMX) \
+ if (! TARGET_MMX || !(target_flags_explicit & MASK_MMX)) \
{ \
int i; \
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) \
@@ -2054,6 +2063,7 @@ enum processor_type
PROCESSOR_PENTIUM4,
PROCESSOR_K8,
PROCESSOR_NOCONA,
+ PROCESSOR_WOODCREST,
PROCESSOR_GENERIC32,
PROCESSOR_GENERIC64,
PROCESSOR_max