S/390: Add support for arch<n> arch/tune options.
commit55c01516b302045a706fffb177bee7f660f6ed66
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Oct 2016 12:28:24 +0000 (28 12:28 +0000)
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Oct 2016 12:28:24 +0000 (28 12:28 +0000)
tree551345af88b6872e485122f7e6ea28bca874c90d
parent971e7f12a002fa222bad8aab03704bba02d74a04
S/390: Add support for arch<n> arch/tune options.

This patch adds an alternate CPU level naming following the
architecture level number in the Principles of Operations manual.  So
instead of having z196, zEC12, and z13 you can use arch9, arch10, and
arch11.  The old cpu names stay valid and should preferably be used.

The alternate names are supposed to improve compatibility with the IBM
XL compiler toolchain which uses the arch numbering.

gcc/testsuite/ChangeLog:

2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/target-attribute/tattr-m64-33.c: New test.

gcc/ChangeLog:

2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390.opt: Support alternate cpu level naming (archXX).
* config.gcc: Support alternate archXX cpu levels with
--with-arch= and --with-tune=.
* config/s390/linux.h: Translate new archXX cpu levels to the
original names when calling GAS.
* config/s390/tpf.h: Likewise.
* doc/invoke.texi: Document the alternate cpu level names.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241643 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config.gcc
gcc/config/s390/linux.h
gcc/config/s390/s390.opt
gcc/config/s390/tpf.h
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/target-attribute/tattr-m64-33.c [new file with mode: 0644]