comparison 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
comparison
equal deleted inserted replaced
454:ffdef8994f13 455:cad5937314cb
72 { "m80ext", "nom80ext", PRAGMA_M80EXT }, 72 { "m80ext", "nom80ext", PRAGMA_M80EXT },
73 { "6809conv", "no6809conv", PRAGMA_6809CONV }, 73 { "6809conv", "no6809conv", PRAGMA_6809CONV },
74 { "6309conv", "no6309conv", PRAGMA_6309CONV }, 74 { "6309conv", "no6309conv", PRAGMA_6309CONV },
75 { "newsource", "nonewsource", PRAGMA_NEWSOURCE }, 75 { "newsource", "nonewsource", PRAGMA_NEWSOURCE },
76 { "nooldsource", "oldsource", PRAGMA_NEWSOURCE }, 76 { "nooldsource", "oldsource", PRAGMA_NEWSOURCE },
77 { "operandsizewarning", "nooperandsizewarning", PRAGMA_OPERANDSIZE },
77 { 0, 0, 0 } 78 { 0, 0, 0 }
78 }; 79 };
79 80
80 int parse_pragma_helper(char *p) 81 int parse_pragma_helper(char *p)
81 { 82 {