This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -fuse-caller-save - Enable for MIPS
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: <rdsandiford at googlemail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Apr 2014 14:10:19 +0200
- Subject: Re: -fuse-caller-save - Enable for MIPS
- Authentication-results: sourceware.org; auth=none
- References: <534ED7BC dot 50300 at mentor dot com> <534FF0F9 dot 60404 at redhat dot com> <87lhv4ug7f dot fsf at sandifor-thinkpad dot stglab dot manchester dot uk dot ibm dot com> <53500628 dot 2090802 at redhat dot com> <5356853D dot 8050905 at mentor dot com> <535A5A8F dot 30901 at mentor dot com> <8761lxr1ay dot fsf at sandifor-thinkpad dot stglab dot manchester dot uk dot ibm dot com> <535BA119 dot 8090504 at mentor dot com> <8761lvcbjo dot fsf at talisman dot default> <535D94EE dot 6080704 at mentor dot com> <87ha5du4w0 dot fsf at sandifor-thinkpad dot stglab dot manchester dot uk dot ibm dot com> <535E31CE dot 4040303 at mentor dot com>
On 28-04-14 12:47, Tom de Vries wrote:
Hmm, is that just because -fcaller-saves is -O2 and above?
For -O1, after adding -fcaller-saves the optimization triggers, and the
test-cases passes.
For -O0, adding -fcaller-saves doesn't make a difference, the optimization
doesn't trigger.
If so,
should -fuse-caller-save imply -fcaller-saves?
I don't think it's strictly necessary, but I can make a patch if required.
Thanks,
- Tom