This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/52415] memcpy to local variable generates unnecessary stack frame for armv7


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52415

--- Comment #5 from Jay Foad <jay.foad at gmail dot com> 2012-02-28 13:03:50 UTC ---
> But to answer your question, how you can assert it is properly aligned, in gcc
> 4.7.0 you can write:
>   __builtin_memcpy (&i, __builtin_assume_aligned (p, sizeof *p), sizeof i);

Thanks! Better:
  __builtin_assume_aligned (p, __alignof__ *p)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]