diff lwasm/pragma.c @ 455:cad5937314cb

Add operandsizewarning pragma Add operandsizewarning pragma that will raise warnings for certain operands if the operand size could be smaller. (Long branch used instead of short branch, for instance.)
author William Astle <lost@l-w.ca>
date Fri, 16 Feb 2018 22:53:46 -0700
parents c501b3ce39c8
children da72c084e0ac
line wrap: on
line diff
--- a/lwasm/pragma.c	Fri Feb 16 22:52:44 2018 -0700
+++ b/lwasm/pragma.c	Fri Feb 16 22:53:46 2018 -0700
@@ -74,6 +74,7 @@
 	{ "6309conv", "no6309conv", PRAGMA_6309CONV },
 	{ "newsource", "nonewsource", PRAGMA_NEWSOURCE },
 	{ "nooldsource", "oldsource", PRAGMA_NEWSOURCE },
+	{ "operandsizewarning", "nooperandsizewarning", PRAGMA_OPERANDSIZE },
 	{ 0, 0, 0 }
 };