Re: Question related to GCC structure variable assignment optimization

2018-07-27 Thread keshav tilak
mcpy@PLT reference then this bug should be similar to the one you pointer in earlier email, right? ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86695) - KGT - Keshav Gangadhar Tilak On Fri, Jul 27, 2018 at 2:24 PM Alexander Monakov wrote: > On Fri, 27 Jul 2018, keshav tilak wrote: >

Question related to GCC structure variable assignment optimization

2018-07-27 Thread keshav tilak
I need some help for GCC optimization behavior which inserts call to `memcpy` when it detects that there is a structure variable assignment. I have below sample code (copied from a similar gcc-help question): [ 0] [15:21:40] root@localhost : # cat b.c struct foo_t { int x[1048576]; } *fo