From 9c47d08e98953623ceac02c8422863e593deb40e Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Wed, 23 Oct 2019 03:57:38 +0200 Subject: 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). --- src/SDCCerr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/SDCCerr.h') 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 */ -- cgit v1.2.3