This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34156] gcc ignores the __may_alias__ attribute on a struct typedef
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2010 15:38:59 -0000
- Subject: [Bug c/34156] gcc ignores the __may_alias__ attribute on a struct typedef
- References: <bug-34156-12219@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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