This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/41045] Extended asm with C operands doesn’t work at top level



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]