From cf1d3aec552ebaea437935e74e5eabda4bd989e7 Mon Sep 17 00:00:00 2001 From: Xavi Del Campo Date: Wed, 6 Nov 2019 04:10:53 +0100 Subject: Fixed github sdcc-gas issues #1, #2 and #4 Issue #1 was caused because code_name and data_name had been incorrectly defined as const-qualified pointers, but this must be an exception for the z80 backend, as stated by the comments. Issue #2 has been solved by removing the --gas switch from SDCCmain.c, renaming it to "--asm=" (as requested by PKK) and moved to STM8's main.c, so the option is limited to those targets supporting it. Issue #4 was because of SDCCglue.c, that generated local labels using "!labeldef" instead of "!slabeldef", causing those __str_%d labels to be printed as "__str_%d::" (the double colons stand for globa label according to asxxx documentation) instead of "__str_%d":". I ran the regression tests and most of them passed, but "wchar" returned another "Multiple definition of..." error that I cannot explain so far. It is better than nothing, though. --- src/SDCCmain.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/SDCCmain.c') diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 99e0c4c..4b3f6e3 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -175,7 +175,6 @@ static const OPTION optionsTable[] = { {'M', NULL, NULL, "Preprocessor option"}, {'W', NULL, NULL, "Pass through options to the pre-processor (p), assembler (a) or linker (l)"}, {'S', NULL, &noAssemble, "Compile only; do not assemble or link"}, - {0 , "--gas", &options.gasOutput, "Compile in GAS (GNU Assembler) format."}, {0 , OPTION_FUNCTION_SECTIONS, &options.function_sections, "Place each function into a separate section. Useful for link-time dead code elimination."}, {0 , OPTION_DATA_SECTIONS, &options.data_sections, "Place each static variable into a separate section. Useful for link-time dead code elimination."}, {'c', "--compile-only", &options.cc_only, "Compile and assemble, but do not link"}, -- cgit v1.2.3