[cfe-commits] r122643 - in /cfe/trunk: lib/CodeGen/CGDecl.cpp lib/CodeGen/CGStmt.cpp test/CodeGen/asm-variable.c
    Rafael Ávila de Espíndola 
    rafael.espindola at gmail.com
       
    Sat Jan  1 14:03:55 PST 2011
    
    
  
> This warning should be straight-forward to implement: just add an 'isused' bit on AsmLabelAttr and set it in AddVariableConstraits.
>
> Rafael, could you tackle this if you get a chance?
I have some other issues I have to look at first, but I reported 8881 to 
track it.
 > Also, please add a doxygen comment to AddVariableConstraits and 
s/Constraits/Constraints/.
Done.
> One other question, what valid code does this ErrorUnsupported reject?  Should it just be a normal error?
>
> +  if (!Target.isValidGCCRegisterName(Register)) {
> +    CGM.ErrorUnsupported(Variable, "__asm__");
> +    return Constraint;
> +  }
Done.
> Thanks!
>
> -Chris
Cheers,
Rafael
    
    
More information about the cfe-commits
mailing list