This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41045] Extended asm with C operands doesn’t work at top level
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2009 17:19:16 -0000
- Subject: [Bug c/41045] Extended asm with C operands doesn’t work at top level
- References: <bug-41045-7274@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-10-09 17:19 -------
Really if the kernel should have compile time asserts that the offsets don't
match up with the inline-asm.
There are ways of doing that it is not hard:
typedef static_assert_1[offsetof(a, b) != OFFSETAB ? -1 : 1];
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045