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

ehrhardt@mathematik.uni-ulm.de ehrhardt@mathematik.uni-ulm.de
Mon May 19 12:46:00 GMT 2003


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



More information about the Gcc-bugs mailing list