Mercurial > hg > index.cgi
diff lwasm/lwasm.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 | b1adf549d181 |
children | 2c1c5dd84024 |
line wrap: on
line diff
--- a/lwasm/lwasm.c Fri Feb 16 22:52:44 2018 -0700 +++ b/lwasm/lwasm.c Fri Feb 16 22:53:46 2018 -0700 @@ -287,7 +287,7 @@ case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT"; case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition"; case W_NOT_SUPPORTED: return "Not supported"; - + case W_OPERAND_SIZE: return "Operand size larger than required"; default: return "Error"; } }