[RS6000] Don't put large integer constants in TOC for -mcmodel=medium
authorAlan Modra <amodra@gmail.com>
Tue, 13 Nov 2018 13:01:36 +0000 (23:31 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 13 Nov 2018 13:01:36 +0000 (23:31 +1030)
commita277ca89ac37a0da1f8e6a92fc3b591e2385dd77
tree2a532104736c20106cbc302ff7b506dbedb654b1
parent9de6af4572105dbe63074d09b8c322464daec2e7
[RS6000] Don't put large integer constants in TOC for -mcmodel=medium

For -mcmodel=medium we can use toc-relative addressing to access
constants placed in read-only data, which is better since they can be
merged when in .rodata.cst8.

* config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Exclude
integer constants when -mcmodel=medium.

From-SVN: r266069
gcc/ChangeLog
gcc/config/rs6000/linux64.h