diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-07-05 07:50:31 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-07-05 07:50:31 +0000 |
commit | 134b044daf0999cee9f85203be3fa35c48051da1 (patch) | |
tree | 2ead129b539b876961452bf5f3dd621395a14b87 /gcc/toplev.c | |
parent | 43c7dca8816e84a7b2d6caa10bed3c0a3c0c7e8e (diff) | |
download | gcc-134b044daf0999cee9f85203be3fa35c48051da1.zip gcc-134b044daf0999cee9f85203be3fa35c48051da1.tar.gz gcc-134b044daf0999cee9f85203be3fa35c48051da1.tar.bz2 |
target-insns.def (prefetch): New targetm instruction pattern.
gcc/
* target-insns.def (prefetch): New targetm instruction pattern.
* tree-ssa-loop-prefetch.c: Include targeth.
(tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
of HAVE_*/gen_* interface.
* builtins.c (expand_builtin_prefetch): Likewise.
* toplev.c (process_options): Likewise.
From-SVN: r225424
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index d0a8f0d..3d943a0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1571,19 +1571,16 @@ process_options (void) } } -#ifndef HAVE_prefetch - if (flag_prefetch_loop_arrays > 0) + if (flag_prefetch_loop_arrays > 0 && !targetm.code_for_prefetch) { warning (0, "-fprefetch-loop-arrays not supported for this target"); flag_prefetch_loop_arrays = 0; } -#else - if (flag_prefetch_loop_arrays > 0 && !HAVE_prefetch) + else if (flag_prefetch_loop_arrays > 0 && !targetm.have_prefetch ()) { warning (0, "-fprefetch-loop-arrays not supported for this target (try -march switches)"); flag_prefetch_loop_arrays = 0; } -#endif /* This combination of options isn't handled for i386 targets and doesn't make much sense anyway, so don't allow it. */ |