diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-18 15:31:18 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-18 15:31:18 +0000 |
commit | 7dc7d4630dbb822eacc062da7b07e5f02102cdec (patch) | |
tree | 4b73e35d83fa638bc5ef4a289762af18b4841edf | |
parent | 2479ea685bb8279fc269659d7d88998a76892934 (diff) | |
download | gcc-7dc7d4630dbb822eacc062da7b07e5f02102cdec.tar.gz |
2015-11-18 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
type-limits warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230551 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 620a3105c1c..e266e105af3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-18 Alan Modra <amodra@gmail.com> + + * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore + type-limits warning. + 2015-11-18 Richard Sandiford <richard.sandiford@arm.com> PR bootstrap/68406 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 457e944225f..5962889f1f8 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -7994,12 +7994,17 @@ rs6000_cannot_force_const_mem (machine_mode mode ATTRIBUTE_UNUSED, rtx x) static bool use_toc_relative_ref (rtx sym, machine_mode mode) { +/* Silence complaint that the POWERPC64_TOC_POINTER_ALIGNMENT test + is always true. */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" return ((constant_pool_expr_p (sym) && ASM_OUTPUT_SPECIAL_POOL_ENTRY_P (get_pool_constant (sym), get_pool_mode (sym))) || (TARGET_CMODEL == CMODEL_MEDIUM && SYMBOL_REF_LOCAL_P (sym) && GET_MODE_SIZE (mode) <= POWERPC64_TOC_POINTER_ALIGNMENT)); +#pragma GCC diagnostic pop } /* Our implementation of LEGITIMIZE_RELOAD_ADDRESS. Returns a value to |