aix: Alias -m64 to -maix64 and -m32 to -maix32.
commit0366e2b40e9ea5fc61c9a694de0c8c76a238b03c
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 27 Apr 2021 20:09:07 +0000 (27 16:09 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 27 Apr 2021 23:54:00 +0000 (27 19:54 -0400)
tree8bc975d6572ffb1324145e0d67cd10ec624f07ca
parent37846c42f1f5ac4d9ba190d49c4373673c89c8b5
aix: Alias -m64 to -maix64 and -m32 to -maix32.

GCC on AIX historically has used -maix64 and -maix32 to switch to 64 bit mode
or 32 bit mode, unlike other ports that use -m64 and -m32.  The Alias()
directive for options cannot be used because aix64 is expected in multiple
parts of the compiler infrastructure and one cannot switch to -m64 due to
backward compatibility.

This patch defines DRIVER_SELF_SPECS to translate -m64 to -maix64 and
-m32 to -maix32 so that the command line option compatible with other
targets can be used while continuing to allow the historical options.

gcc/ChangeLog:

* config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
* config/rs6000/aix64.opt (m64): New.
(m32): New.
gcc/config/rs6000/aix.h
gcc/config/rs6000/aix64.opt