[PATCH] Improve diagnostics for asm immediate constraints and downgrade from error to default-error
joerg at NetBSD.org
Fri Jan 16 06:36:48 PST 2015
Hi compnerd, chandlerc, rnk,
After r225244 clang verifies that inline asm constraints for immediate operands are used with ICE. This breaks existing code like pixman and tomcrypt as well as makes it impossible to create optimal output if either fixed or variable arguments can be supported. The backend has to be able to deal with the constraint check anyway and for all given cases it does. Therefore, downgrade the diagnostic from a hard error to an error-default warning. Correct use involving __builtin_constant_p can be annotated accordingly.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5344 bytes
Desc: not available
More information about the cfe-commits