--- Comment #3 from vda dot linux at googlemail dot com 2010-02-04 14:33
---
I was bitten by this whet I was trying to get rid of
warning: dereferencing type-punned pointer will break strict-aliasing rules
on this fairly normal networking-related code:
if (cmsgptr-cmsg_level ==
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-02-04 15:38 ---
The easiest way would be to expose the middle-end ref-all pointer annotation
so you could do typedef struct T *my_ptr __attribute__((ref_all)).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34156
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-11-20 02:24 ---
Please read the dicussion starting at:
http://gcc.gnu.org/ml/gcc/2007-11/msg00213.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34156
--- Comment #2 from acahalan at gmail dot com 2007-11-20 05:35 ---
(In reply to comment #1)
Please read the dicussion starting at:
http://gcc.gnu.org/ml/gcc/2007-11/msg00213.html
Discussion noted.
It seems like the 100% workable solution is to let the C++ compiler factor
attributes