i386-cmov1.c broken
Jan Hubicka
jh@suse.cz
Sat Jun 7 16:52:00 GMT 2003
> There is yet another small problem in your patch I just run across.
> At the x86_64 cc1 used to default into k8 code generation, while it now
> default into i386 that makes it to just error out.
> When called via xgcc everything is OK, but it is somewhat anoying when
> you start it by hand. I am testing patch to set TARGET_CPU_DEFAULT into
> k8 for 64bit compiler to avoid this but the idea that cc1 now defaults
> into something different than xgcc looks bit unconfortable to me.
> At least I often call cc1 by hand and do not expect this.
I am commiting the attached patch obvious so we again get sane default
for 64bit.
Sat Jun 7 18:43:21 CEST 2003 Jan Hubicka <jh@suse.cz>
* i386.h (TARGET_CPU_DEFAULT): Default to k8 for 64bit compiler.
Index: i386.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.341
diff -c -3 -p -r1.341 i386.h
*** i386.h 7 Jun 2003 16:32:58 -0000 1.341
--- i386.h 7 Jun 2003 16:43:12 -0000
*************** extern int target_flags;
*** 97,103 ****
--- 97,107 ----
/* configure can arrange to make this 2, to force a 486. */
#ifndef TARGET_CPU_DEFAULT
+ #ifdef TARGET_64BIT_DEFAULT
+ #define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_k8
+ #else
#define TARGET_CPU_DEFAULT 0
+ #endif
#endif
/* Masks for the -m switches */
More information about the Gcc
mailing list