S/390: Add support for arch arch/tune options

Programming / Compilers / GCC - krebbel [138bc75d-0d04-0410-961f-82ee72b054a4] - 28 October 2016 07:28 UTC

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

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

gcc/ChangeLog:

2016-10-28 Andreas Krebbel

- 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.

55c0151 S/390: Add support for arch arch/tune options.
gcc/ChangeLog | 10 +
gcc/config.gcc | 2 +-
gcc/config/s390/linux.h | 14 +-
gcc/config/s390/s390.opt | 24 ++
gcc/config/s390/tpf.h | 17 +-
gcc/doc/invoke.texi | 16 +-
gcc/testsuite/ChangeLog | 4 +
.../s390/target-attribute/tattr-m64-33.c | 353 ++++++++++++++++++++
8 files changed, 430 insertions(+), 10 deletions(-)

Upstream: gcc.gnu.org


  • Share