[Bug inline-asm/17346] linux kernel: handwritten offsetof break inline asm
jsm at polyomino dot org dot uk
gcc-bugzilla@gcc.gnu.org
Tue Sep 7 16:38:00 GMT 2004
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-07 16:38 -------
Subject: Re: linux kernel: handwritten offsetof break
inline asm
On Tue, 7 Sep 2004, pinskia at gcc dot gnu dot org wrote:
> Actually this is not a constant by defintion of the C standard at all....
> This was an undocumented extension which was removed.
Inline asm operands are not a place to be pedantic about the standard
definition of constant expressions. There, you *want* "anything the
compiler can optimise to a constant" to be constant. So there is a
regression in what the compiler can optimise to be constant.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17346
More information about the Gcc-bugs
mailing list