diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-23 03:57:38 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-23 03:57:38 +0200 |
| commit | 9c47d08e98953623ceac02c8422863e593deb40e (patch) | |
| tree | 69c881d20ac0bc878bdd91da8dc2e668374a3dbc /src/SDCCerr.h | |
| parent | 4df948b3c184864525e7fa7e26ab380a70d644cd (diff) | |
| download | sdcc-gas-9c47d08e98953623ceac02c8422863e593deb40e.tar.gz | |
Implemented -c support for --gas
STM8 code generator was generating some instructions in a
"ld register, (#%d, register)" way, causing assembling errors on
stm8-as. This is because stm8-as does not require the '#' character.
A quick and dirty workaround has been implemented for this.
Added new warning W_IGNORED_OPT_IN_ASM, which warns the user when
both "--no-optsdcc-in-asm" and "--gas" are used (the first is ignored
when the latter is active since GNU as does not accept the .optsdcc
directive, as opposed to asxxx).
Diffstat (limited to 'src/SDCCerr.h')
| -rw-r--r-- | src/SDCCerr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SDCCerr.h b/src/SDCCerr.h index ed8f3a5..6312d18 100644 --- a/src/SDCCerr.h +++ b/src/SDCCerr.h @@ -276,6 +276,7 @@ enum { E_DECL_AFTER_STATEMENT_C99 = 247, /* declaration after statement requires ISO C99 or later */ E_SHORTCALL_INVALID_VALUE = 248, /* Invalid value for a __z88dk_shortcall specifier */ E_DUPLICATE_PARAMTER_NAME = 249, /* duplicate parameter name */ + W_IGNORED_OPT_IN_ASM = 250, /* Ignored OPTION_NO_OPTSDCC_IN_ASM when GNU assembler output is used */ /* don't touch this! */ NUMBER_OF_ERROR_MESSAGES /* Number of error messages */ |
