This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

x86-64 merger part 10 - cpp specs


Hi
This patch adds the CPP specs for x86_64.

Honza

Sat Mar 10 14:42:38 CET 2001  Jan Hubicka  <jh@suse.cz>

	* i386.h (CPP_CPU32_SPEC): Break out from....
	(CPP_CPUCOMMON_SPEC): Break out from ...
	(CPP_CPU_SPEC) ... here; Add -m64/-m32 support.
	(CPP_CPU64_SPEC): New.

*** i386.h	Sat Mar 10 14:18:09 2001
--- /home/hubicka/x86-64/gcc/gcc/config/i386/i386.h	Thu Mar  8 12:01:37 2001
*************** extern int ix86_arch;
*** 448,462 ****
  #if TARGET_CPU_DEFAULT == 6
  #define CPP_CPU_DEFAULT_SPEC "-D__tune_pentium4__"
  #endif
  #ifndef CPP_CPU_DEFAULT_SPEC
  #define CPP_CPU_DEFAULT_SPEC "-D__tune_i386__"
  #endif
  #endif /* CPP_CPU_DEFAULT_SPEC */
  
! #ifndef CPP_CPU_SPEC
! #define CPP_CPU_SPEC "\
! -Acpu=i386 -Amachine=i386 \
! %{!ansi:%{!std=c*:%{!std=i*:-Di386}}} -D__i386 -D__i386__ \
  %{march=i386:%{!mcpu*:-D__tune_i386__ }}\
  %{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}\
  %{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__ \
--- 464,491 ----
  #if TARGET_CPU_DEFAULT == 6
  #define CPP_CPU_DEFAULT_SPEC "-D__tune_pentium4__"
  #endif
  #ifndef CPP_CPU_DEFAULT_SPEC
  #define CPP_CPU_DEFAULT_SPEC "-D__tune_i386__"
  #endif
  #endif /* CPP_CPU_DEFAULT_SPEC */
  
! #ifdef NO_BUILTIN_SIZE_TYPE
! #define CPP_CPU32_SIZE_TYPE_SPEC \
!   " -D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int"
! #define CPP_CPU64_SIZE_TYPE_SPEC \
!   " -D__SIZE_TYPE__=unsigned\\ long\\ int -D__PTRDIFF_TYPE__=long\\ int"
! #else
! #define CPP_CPU32_SIZE_TYPE_SPEC ""
! #define CPP_CPU64_SIZE_TYPE_SPEC ""
! #endif
! 
! #define CPP_CPU32_SPEC \
!   "-Acpu=i386 -Amachine=i386 %{!ansi:%{!std=c*:%{!std=i*:-Di386}}} -D__i386 -D__i386__"\
!   CPP_CPU32_SIZE_TYPE_SPEC
! #define CPP_CPU64_SPEC \
!   "-Acpu=x86_64 -Amachine=x86_64 -D__x86_64 -D__x86_64__"\
!   CPP_CPU64_SIZE_TYPE_SPEC
! #define CPP_CPUCOMMON_SPEC "\
  %{march=i386:%{!mcpu*:-D__tune_i386__ }}\
  %{march=i486:-D__i486 -D__i486__ %{!mcpu*:-D__tune_i486__ }}\
  %{march=pentium|march=i586:-D__i586 -D__i586__ -D__pentium -D__pentium__ \
*************** extern int ix86_arch;
*** 466,472 ****
    %{!mcpu*:-D__tune_i686__ -D__tune_pentiumpro__ }}\
  %{march=k6:-D__k6 -D__k6__ %{!mcpu*:-D__tune_k6__ }}\
  %{march=athlon:-D__athlon -D__athlon__ %{!mcpu*:-D__tune_athlon__ }}\
! %{mpentium4=pentium4:-D__pentium4 -D__pentium4__ %{!mcpu*:-D__tune_pentium4__ }}\
  %{m386|mcpu=i386:-D__tune_i386__ }\
  %{m486|mcpu=i486:-D__tune_i486__ }\
  %{mpentium|mcpu=pentium|mcpu=i586:-D__tune_i586__ -D__tune_pentium__ }\
--- 498,504 ----
    %{!mcpu*:-D__tune_i686__ -D__tune_pentiumpro__ }}\
  %{march=k6:-D__k6 -D__k6__ %{!mcpu*:-D__tune_k6__ }}\
  %{march=athlon:-D__athlon -D__athlon__ %{!mcpu*:-D__tune_athlon__ }}\
! %{march=pentium4:-D__pentium4 -D__pentium4__ %{!mcpu*:-D__tune_pentium4__ }}\
  %{m386|mcpu=i386:-D__tune_i386__ }\
  %{m486|mcpu=i486:-D__tune_i486__ }\
  %{mpentium|mcpu=pentium|mcpu=i586:-D__tune_i586__ -D__tune_pentium__ }\
*************** extern int ix86_arch;
*** 474,480 ****
--- 506,523 ----
  %{mcpu=k6:-D__tune_k6__ }\
  %{mcpu=athlon:-D__tune_athlon__ }\
  %{mcpu=pentium4:-D__tune_pentium4__ }\
  %{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}"
+ 
+ #ifndef CPP_CPU_SPEC
+ #ifdef TARGET_64BIT_DEFAULT
+ #define CPP_CPU_SPEC \
+      "%{m32:" CPP_CPU32_SPEC "} " "%{!m32:" CPP_CPU64_SPEC"} "		\
+      CPP_CPUCOMMON_SPEC
+ #else
+ #define CPP_CPU_SPEC \
+      "%{m64:" CPP_CPU64_SPEC "} " "%{!m64:" CPP_CPU32_SPEC"} "		\
+      CPP_CPUCOMMON_SPEC
+ #endif
  #endif
  
  #ifndef CC1_SPEC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]