This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/17346] linux kernel: handwritten offsetof break inline asm
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2004 18:22:35 -0000
- Subject: [Bug inline-asm/17346] linux kernel: handwritten offsetof break inline asm
- References: <20040907113458.17346.matz@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zack at gcc dot gnu dot org 2004-09-07 18:22 -------
reopening due to degree of controversy.
I have no opinion on whether or not this is a good idea, but as a technical
observation, I don't see why the C front end couldn't smash &((T *)0)->M to
__builtin_offsetof(T, M) before the optimizers can choke on it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17346