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 inline-asm/17346] linux kernel: handwritten offsetof break inline asm


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


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