Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
* Invalid compilation without -fno-strict-aliasing
@ 2017-11-03  1:54 Yubin Ruan
  2017-11-03 12:27 ` Paul E. McKenney
  0 siblings, 1 reply; 9+ messages in thread
From: Yubin Ruan @ 2017-11-03  1:54 UTC (permalink / raw)
  To: perfbook

Does anyone have any idea why this thread

    https://lkml.org/lkml/2003/2/25/270

is related to strict-aliasing? To me, a compiler barrier like this will fix it:

    if((stream + event_len) < ends) {
        iwe->len = event_len;
        barrier();
        memcpy(stream, (char *) iwe, event_len);
        stream += event_len;
    }

Yubin

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-04  0:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-03  1:54 Invalid compilation without -fno-strict-aliasing Yubin Ruan
2017-11-03 12:27 ` Paul E. McKenney
2017-11-03 13:33   ` Yubin Ruan
2017-11-03 14:03     ` Paul E. McKenney
2017-11-03 14:12       ` Yubin Ruan
2017-11-03 14:38         ` Paul E. McKenney
2017-11-03 23:26           ` Yubin Ruan
2017-11-03 23:55             ` Paul E. McKenney
2017-11-04  0:24               ` Yubin Ruan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox