Message ID | 20150706164348.GA12783@intel.com |
---|---|
State | New |
Headers | show |
On Mon, Jul 6, 2015 at 6:43 PM, H.J. Lu <hongjiu.lu@intel.com> wrote: > Default -mtune=/-march= to iamcu for i[34567]86-*-elfiamcu targets. > > OK for trunk? > > Thanks. > > H.J. > --- > * config.gcc (x86_archs): Add iamcu. > (with_cpu): Default to iamcu for i[34567]86-*-elfiamcu. > (with_arch): Likewise. > * doc/invoke.texi: Add iamcu. OK. Thanks, Uros. > --- > gcc/config.gcc | 8 +++++++- > gcc/doc/invoke.texi | 3 +++ > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index 2b3af82..f0405fe 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -585,7 +585,7 @@ tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" > x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \ > athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \ > i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \ > -pentium4 pentium4m pentiumpro prescott" > +pentium4 pentium4m pentiumpro prescott iamcu" > > # 64-bit x86 processors supported by --with-arch=. Each processor > # MUST be separated by exactly one space. > @@ -3278,6 +3278,9 @@ esac > # This block sets nothing except for with_cpu. > if test x$with_cpu = x ; then > case ${target} in > + i[34567]86-*-elfiamcu) > + with_cpu=iamcu > + ;; > i[34567]86-*-*|x86_64-*-*) > with_cpu=$cpu > ;; > @@ -3370,6 +3373,9 @@ if test x$with_arch = x ; then > # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT > # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. > ;; > + i[34567]86-*-elfiamcu) > + with_arch=iamcu > + ;; > i[34567]86-*-*) > # --with-fpmath sets the default ISA to SSE2, which is the same > # ISA supported by Pentium 4. > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > index 69ae0c3..b28e5d6 100644 > --- a/gcc/doc/invoke.texi > +++ b/gcc/doc/invoke.texi > @@ -22250,6 +22250,9 @@ Intel i486 CPU@. (No scheduling is implemented for this chip.) > @itemx pentium > Intel Pentium CPU with no MMX support. > > +@item iamcu > +Intel MCU, based on Intel Pentium CPU. > + > @item pentium-mmx > Intel Pentium MMX CPU, based on Pentium core with MMX instruction set support. > > -- > 2.4.3 >
diff --git a/gcc/config.gcc b/gcc/config.gcc index 2b3af82..f0405fe 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -585,7 +585,7 @@ tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4" x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \ athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \ i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \ -pentium4 pentium4m pentiumpro prescott" +pentium4 pentium4m pentiumpro prescott iamcu" # 64-bit x86 processors supported by --with-arch=. Each processor # MUST be separated by exactly one space. @@ -3278,6 +3278,9 @@ esac # This block sets nothing except for with_cpu. if test x$with_cpu = x ; then case ${target} in + i[34567]86-*-elfiamcu) + with_cpu=iamcu + ;; i[34567]86-*-*|x86_64-*-*) with_cpu=$cpu ;; @@ -3370,6 +3373,9 @@ if test x$with_arch = x ; then # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h. ;; + i[34567]86-*-elfiamcu) + with_arch=iamcu + ;; i[34567]86-*-*) # --with-fpmath sets the default ISA to SSE2, which is the same # ISA supported by Pentium 4. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 69ae0c3..b28e5d6 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -22250,6 +22250,9 @@ Intel i486 CPU@. (No scheduling is implemented for this chip.) @itemx pentium Intel Pentium CPU with no MMX support. +@item iamcu +Intel MCU, based on Intel Pentium CPU. + @item pentium-mmx Intel Pentium MMX CPU, based on Pentium core with MMX instruction set support.