Turn on -mpcrel by default for -mcpu=future
authorMichael Meissner <2019-02-12 Michael Meissner meissner@linux.ibm.com>
Sat, 25 Apr 2020 06:43:10 +0000 (02:43 -0400)
committerMichael Meissner <2019-02-12 Michael Meissner meissner@linux.ibm.com>
Sat, 25 Apr 2020 06:43:10 +0000 (02:43 -0400)
commitda4aae6e16f2755161b148d110edbf8ed8589acc
tree79f3974cc50dba7ad4fb082d3b21d80225f5ee3d
parent352811870d7d7edcca109ef50822e26ca7ef2b36
Turn on -mpcrel by default for -mcpu=future

2020-04-25  Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
enable PC-relative addressing for -mcpu=future.
* config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
after OTHER_FUTURE_MASKS.  Use OTHER_FUTURE_MASKS.
* config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
suppress PC-relative addressing.
(rs6000_option_override_internal): Split up error messages
checking for -mprefixed and -mpcrel.  Enable -mpcrel if the target
system supports it.
gcc/ChangeLog
gcc/config/rs6000/linux64.h
gcc/config/rs6000/rs6000-cpus.def
gcc/config/rs6000/rs6000.c