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: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2004 16:38:10 -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 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