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: "matz at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2004 16:17:56 -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 matz at suse dot de 2004-09-07 16:17 -------
Huh? This _is_ to what offsetof in the kernel expands, if you would be so
kind to read what I wrote. The kernels in the wild are not using
__builtin_offsetof, but instead this self-written idiom, which had to be used
before __builtin_offsetof was invented. So I very much think, that this
idiom would be better recognized as constant, which in fact in C it is.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17346