Re: inline-asm/10857: Inlining a function with inline-asm: "error: impossible constraint in `asm'"

[email protected]
Newsgroups gmane.comp.gcc.prs,gmane.comp.gcc.bugs
Message-ID <[email protected]>
Synopsis: Inlining a function with inline-asm: "error: impossible constraint in `asm'"

State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Mon May 19 12:23:16 2003
State-Changed-Why:
    Not a bug. An immediate value must be a compile time constant. A
    procedure parameter is definitly NOT a compile time constant. gcc
    can deduce its value for an inline function if certain optimizations
    are done. You can request these optimizations with the various -O
    flags and in this case the code compiles. Note that there is no
    guarantee that this will remain true in the future.
    
    Also note that the `I' constraint has this description on the avr
    architecture:
    
    |    `I'
    |          Constant greater than -1, less than 64
    
         regards  Christian

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10857
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.