comparison 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
comparison
equal deleted inserted replaced
454:ffdef8994f13 455:cad5937314cb
285 case E_USER_SPECIFIED: return "User Specified:"; 285 case E_USER_SPECIFIED: return "User Specified:";
286 286
287 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT"; 287 case W_ENDSTRUCT_WITHOUT: return "ENDSTRUCT without STRUCT";
288 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition"; 288 case W_DUPLICATE_SECTION: return "Section flags can only be specified the first time; ignoring duplicate definition";
289 case W_NOT_SUPPORTED: return "Not supported"; 289 case W_NOT_SUPPORTED: return "Not supported";
290 290 case W_OPERAND_SIZE: return "Operand size larger than required";
291 default: return "Error"; 291 default: return "Error";
292 } 292 }
293 } 293 }
294 294
295 /* keeping this as a separate error output for stability in unit test scripts */ 295 /* keeping this as a separate error output for stability in unit test scripts */