This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45462] Bad optimization in -O3 sometimes
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2010 04:41:34 -0000
- Subject: [Bug c++/45462] Bad optimization in -O3 sometimes
- References: <bug-45462-19630@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gmail dot com 2010-09-01 04:41 -------
Subject: Re: Bad optimization in -O3 sometimes
On Aug 31, 2010, at 9:32 PM, "yotambarnoy at gmail dot com"
<gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- Comment #6 from yotambarnoy at gmail dot com 2010-09-01
> 04:32 -------
> I recently implemented a custom memcpy for ScummVM. I didn't notice
> the
> standard memcpy using lwl and lwr. In any case, how would memcpy do
> it any
> better? Unless you're referring to the new memcpy inlining in newer
> versions of
> gcc?
I am referring to the standard builtin version of memcpy. It is not
just in newer versions; it has been there since 3.0. What is new is
the more optimized version for x86 with either a large constant or a
non constant. Can you try memcpy? If that does not work, please file a
bug and cc me, I will see what I can do. I am working with MIPS lately.
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45462
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45462