Fix failure on powerpc 32-bit only targets
authorAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 02:07:51 +0000 (11:37 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 27 May 2019 04:38:17 +0000 (14:08 +0930)
commit5f63875b309f3ae9854ac8a12470111b794a70a2
tree2fb0abfebefff752b4cf82964d4fafed99e3734e
parent61dd8e19a8b43037125d4a767f27e98e9181521b
Fix failure on powerpc 32-bit only targets

Targets that lack ppc64 support were failing the new prefix-reloc
test.  This patch adds some test infrastructure to deal with that, and
changes the powerpc gas usage info so that "-a64" is omitted when
unsupported.

I've been meaning to break up the usage message for a long time;
While doing so causes translators some work now, it should make it
easier next time a new powerpc option is added.

* config/tc-ppc.c (is_ppc64_target): New function.
(md_show_usage): Split up usage message.  Don't show -a64 when
unsupported.
testsuite/gas/ppc/ppc.exp (supports_ppc64): New.
(prefix-reloc): Only run for ppc64.
gas/ChangeLog
gas/config/tc-ppc.c
gas/testsuite/gas/ppc/ppc.exp