comparison lwasm/pragma.c @ 367:c6d2a1f54e0c

Change processor target variations to pragmas. Add "pragma 6809" and "pragma 6309" which select the processor target rather than a global flag. The command line switches set or reset the pragma appropriately. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 15 Jun 2015 21:21:58 -0600
parents 98f3e016cfd8
children 8764142b3192
comparison
equal deleted inserted replaced
366:433dbc18fb41 367:c6d2a1f54e0c
58 { "autobranchlength", "noautobranchlength", PRAGMA_AUTOBRANCHLENGTH }, 58 { "autobranchlength", "noautobranchlength", PRAGMA_AUTOBRANCHLENGTH },
59 { "export", "noexport", PRAGMA_EXPORT }, 59 { "export", "noexport", PRAGMA_EXPORT },
60 { "symbolnocase", "nosymbolnocase", PRAGMA_SYMBOLNOCASE }, 60 { "symbolnocase", "nosymbolnocase", PRAGMA_SYMBOLNOCASE },
61 { "nosymbolcase", "symbolcase", PRAGMA_SYMBOLNOCASE }, 61 { "nosymbolcase", "symbolcase", PRAGMA_SYMBOLNOCASE },
62 { "condundefzero", "nocondundefzero", PRAGMA_CONDUNDEFZERO }, 62 { "condundefzero", "nocondundefzero", PRAGMA_CONDUNDEFZERO },
63 { "6809", "6309", PRAGMA_6809 },
63 { "6800compat", "no6800compat", PRAGMA_6800COMPAT }, 64 { "6800compat", "no6800compat", PRAGMA_6800COMPAT },
64 { "forwardrefmax", "noforwardrefmax", PRAGMA_FORWARDREFMAX }, 65 { "forwardrefmax", "noforwardrefmax", PRAGMA_FORWARDREFMAX },
65 { 0, 0, 0} 66 { 0, 0, 0}
66 }; 67 };
67 68