Don't sign extend the char when expanding char -> int during
[oota-llvm.git] / Makefile.rules
index 52a61109d6ed75205fc0ae58940d5b07e952503f..06ffe005da717e9393f9fb08cfdf5bf3562ba15a 100644 (file)
@@ -1765,3 +1765,11 @@ printvars::
        $(Echo) "SubDirs      : " '$(SubDirs)'
        $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)'
        $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'
+
+###
+# Debugging
+
+# General debugging rule, use 'make print-XXX' to print the
+# definition, value and origin of XXX.
+print-%: 
+       $(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))