This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Attribute noclone
On Fri, Jul 17, 2009 at 15:40, Richard
Guenther<richard.guenther@gmail.com> wrote:
> Hm. ÂWhy not simply make the noinline attribute prevent cloning as well?
> I think that is what code using the noinline attribute would expect
> (the body shouldn't be duplicated).
I don't have a strong preference, though noinline does seem to imply noclone.
In any case, if we agree that noinline implies noclone, this would fix
the current over-optimization failure of
gcc.c-torture/execute/builtins/strncpy.c with LTO (we end up calling
the user function instead of the builtin because of IPA-CP cloning).
Either noinline disables all cloning or we add noclone. I'd rather
use noinline, unless there's a compelling reason to distinguish the
two.
Diego.