This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273500 - in /branches/ibm/pcrel-trunk/gcc: Cha...
- From: meissner at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 15 Jul 2019 22:06:17 -0000
- Subject: r273500 - in /branches/ibm/pcrel-trunk/gcc: Cha...
Author: meissner
Date: Mon Jul 15 22:06:17 2019
New Revision: 273500
URL: https://gcc.gnu.org/viewcvs?rev=273500&root=gcc&view=rev
Log:
Redefine TARGET_TOC to not be set for pc-relative support.
2019-07-15 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
TARGET_HAS_TOC.
(TARGET_TOC): Likewise.
(TARGET_NO_TOC): Delete here, define in rs6000.h.
* config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
TARGET_HAS_TOC.
(TARGET_TOC): Likewise.
(TARGET_NO_TOC): Delete here, define in rs6000.h.
* config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
TARGET_HAS_TOC.
(TARGET_TOC): Likewise.
* config/rs6000/rs6000.c (rs6000_option_override_internal): Add
check to require -mcmodel=medium for pc-relative addressing.
(create_TOC_reference): Add assertion for TARGET_TOC.
(TOC_alias_set): Rename TOC alias set static variable from 'set'
to 'TOC_alias_set'.
(get_TOC_alias_set): Likewise.
* config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
TARGET_HAS_TOC and not pc-relative.
(TARGET_NO_TOC): Likewise.
* config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
TARGET_HAS_TOC.
(TARGET_TOC): Likewise.
(TARGET_NO_TOC): Delete here, define in rs6000.h.
Modified:
branches/ibm/pcrel-trunk/gcc/ChangeLog.meissner
branches/ibm/pcrel-trunk/gcc/config/rs6000/aix.h
branches/ibm/pcrel-trunk/gcc/config/rs6000/darwin.h
branches/ibm/pcrel-trunk/gcc/config/rs6000/linux64.h
branches/ibm/pcrel-trunk/gcc/config/rs6000/rs6000.c
branches/ibm/pcrel-trunk/gcc/config/rs6000/rs6000.h
branches/ibm/pcrel-trunk/gcc/config/rs6000/sysv4.h