This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't enable -fprefetch-loop-arrays for TARGET_SOFTWARE_PREFETCHING_BENEFICIAL if -Os
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Fri, 10 Apr 2015 08:35:13 +0200
- Subject: Re: Don't enable -fprefetch-loop-arrays for TARGET_SOFTWARE_PREFETCHING_BENEFICIAL if -Os
- Authentication-results: sourceware.org; auth=none
Hello!
> Testing an x86_64 toolchain configured for a processor with
> TARGET_SOFTWARE_PREFETCHING_BENEFICIAL produces failures
>
> FAIL: g++.dg/pr60518.C -std=gnu++98 (test for excess errors)
> FAIL: g++.dg/pr60518.C -std=gnu++11 (test for excess errors)
> FAIL: g++.dg/pr60518.C -std=gnu++14 (test for excess errors)
>
> where the failure is from the message "pr60518.C:1:0: warning:
> -fprefetch-loop-arrays is not supported with -Os".
>
> Given that lack of support, it seems appropriate for the back end not
> to enable this option in the -Os case; this patch implements that.
>
> Bootstrapped with no regressions on x86_64-unknown-linux-gnu; tested
> for a cross to x86_64-linux-gnu --with-arch=btver2, where those test
> failures duly disappear. OK to commit?
>
> 2015-04-09 Joseph Myers <joseph@codesourcery.com>
>
> * config/i386/i386.c (ix86_option_override_internal): Don't set
> -fprefetch-loop-arrays if optimizing for size.
OK.
Thanks,
Uros.