[Bug inline-asm/17346] linux kernel: handwritten offsetof break inline asm

zack at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 7 18:22:00 GMT 2004


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



More information about the Gcc-bugs mailing list