Mercurial > hg > index.cgi
diff lwasm/lwasm.h @ 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 | 61580fc48f98 |
children | a6c9129e5948 |
line wrap: on
line diff
--- a/lwasm/lwasm.h Fri Feb 16 22:52:44 2018 -0700 +++ b/lwasm/lwasm.h Fri Feb 16 22:53:46 2018 -0700 @@ -105,6 +105,7 @@ PRAGMA_6809CONV = 1 << 22, // enable 6809 convenience ops PRAGMA_6309CONV = 1 << 23, // enable 6309 convenience ops PRAGMA_NEWSOURCE = 1 << 24, // don't use compatibility source format + PRAGMA_OPERANDSIZE = 1 << 25, // warn if operand size is bigger than required PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status }; @@ -210,7 +211,8 @@ W_DUPLICATE_SECTION = 1000, W_ENDSTRUCT_WITHOUT = 1001, W_NOT_SUPPORTED = 1002, - W_USER_SPECIFIED = 1003 + W_USER_SPECIFIED = 1003, + W_OPERAND_SIZE = 1004 } lwasm_errorcode_t; typedef struct lwasm_error_s lwasm_error_t;