diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-25 02:19:30 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-25 02:19:30 +0200 |
| commit | 46783fd76b89ff4e444f4e62e9ce42180fe24eda (patch) | |
| tree | 060a1cfd1e7aeb22097d039540742f987f1e7120 | |
| parent | 4de313f145d3c9bde748306f48443aadef6cf774 (diff) | |
Removed unneded "== ." directives for --gas
| -rw-r--r-- | src/SDCCdwarf2.c | 4 | ||||
| -rw-r--r-- | src/SDCCglue.c | 12 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/SDCCdwarf2.c b/src/SDCCdwarf2.c index 25eb4bb..e038805 100644 --- a/src/SDCCdwarf2.c +++ b/src/SDCCdwarf2.c @@ -1537,7 +1537,7 @@ dwWritePubnames (void) dwWriteHalf (NULL, 2, NULL); /* DWARF version */ dwWriteWord (LOCAL_LABEL ("Ldebug_info_start")"-4", 0, NULL); - dwWriteWordDelta ("4+"LOCAL_LABEL ("Ldebug_info_end"), LOCAL_LABEL ("Ldebug_info_start")); + dwWriteWordDelta ("4+" LOCAL_LABEL ("Ldebug_info_end"), LOCAL_LABEL ("Ldebug_info_start")); if (dwRootTag && dwRootTag->firstChild) { @@ -2925,7 +2925,7 @@ dwWriteLabel (symbol *sym, const iCode *ic) if (sym->isitmp) return 1; - sprintf (debugSym, "L%s$%s$%s", dwModuleName, currFunc->name, sym->name); + sprintf (debugSym, LOCAL_LABEL ("L") "%s$%s$%s", dwModuleName, currFunc->name, sym->name); emitDebuggerSymbol (debugSym); tp = dwNewTag (DW_TAG_label); diff --git a/src/SDCCglue.c b/src/SDCCglue.c index a2ed613..04804e2 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1942,7 +1942,7 @@ emitStaticSeg (memmap *map, struct dbuf_s *oBuf) /* if it has an absolute address and no initializer */ if (SPEC_ABSA (sym->etype) && !sym->ival) { - if (options.debug) + if (options.debug && !options.gasOutput) { emitDebugSym (oBuf, sym); dbuf_printf (oBuf, " == 0x%04x\n", SPEC_ADDR (sym->etype)); @@ -1964,7 +1964,7 @@ emitStaticSeg (memmap *map, struct dbuf_s *oBuf) { dbuf_tprintf (oBuf, "\t!org\n", SPEC_ADDR (sym->etype)); } - if (options.debug) + if (options.debug && !options.gasOutput) { emitDebugSym (oBuf, sym); dbuf_printf (oBuf, " == .\n"); @@ -1985,7 +1985,7 @@ emitStaticSeg (memmap *map, struct dbuf_s *oBuf) else { /* allocate space */ - if (options.debug) + if (options.debug && !options.gasOutput) { emitDebugSym (oBuf, sym); dbuf_printf (oBuf, " == .\n"); @@ -2249,7 +2249,7 @@ emitOverlay (struct dbuf_s *aBuf) if (SPEC_ABSA (sym->etype)) { /* print extra debug info if required */ - if (options.debug) + if (options.debug && !options.gasOutput) { emitDebugSym (aBuf, sym); dbuf_printf (aBuf, " == 0x%04x\n", SPEC_ADDR (sym->etype)); @@ -2520,11 +2520,9 @@ glue (void) if (!options.gasOutput) { - const char *const start_stack = "__start__stack"; tfprintf(asmFile, "\t!area\n", "SSEG"); - tfprintf(asmFile, "\t!labeldef\n", start_stack); tfprintf(asmFile, "\t!ds\n\n", size); - tfprintf(asmFile, "\t!area\n" "__start__stack:\n", "SSEG"); + tfprintf(asmFile, "\t__start__stack:\n"); } } |
