Refactor section creation errors, and simplify output for single errors (#1964)

This commit is contained in:
Rangi
2026-05-21 13:01:08 -04:00
committed by GitHub
parent 728d14879b
commit d56dbbb4bf
20 changed files with 132 additions and 87 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
error: Section already defined
FATAL: Section "dup" already defined
at duplicate-section-after-literal.asm(7)
and also:
at duplicate-section-after-literal.asm(5)
FATAL: Cannot create section "dup" (1 error)
at duplicate-section-after-literal.asm(7)
+1 -3
View File
@@ -1,6 +1,4 @@
error: Section already defined
FATAL: Section "sec" already defined
at duplicate-section.asm(4)
and also:
at duplicate-section.asm(2)
FATAL: Cannot create section "sec" (1 error)
at duplicate-section.asm(4)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared as fixed at incompatible address $c002
at fragment-align-mismatch.asm(2)
FATAL: Cannot create section "aligned" (1 error)
FATAL: Section "aligned" already declared as fixed at incompatible address $c002
at fragment-align-mismatch.asm(2)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared as fixed at incompatible address $0000
at fragment-mismatch.asm(2)
FATAL: Cannot create section "test" (1 error)
FATAL: Section "test" already declared as fixed at incompatible address $0000
at fragment-mismatch.asm(2)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared with incompatible 256-byte alignment (offset 0)
at incompatible-alignment.asm(8)
FATAL: Cannot create section "Test" (1 error)
FATAL: Section "Test" already declared with incompatible 256-byte alignment (offset 0)
at incompatible-alignment.asm(8)
+3
View File
@@ -0,0 +1,3 @@
SECTION FRAGMENT "test", ROM0[$0000]
SECTION FRAGMENT "test", ROMX[$4000]
+6
View File
@@ -0,0 +1,6 @@
error: Section "test" already exists but with type `ROM0`
at multiple-section-errors.asm(3)
error: Section "test" already declared as fixed at incompatible address $0000
at multiple-section-errors.asm(3)
FATAL: Cannot create section "test" (2 errors)
at multiple-section-errors.asm(3)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared as fixed at different address $c000
at section-union-mismatch.asm(2)
FATAL: Cannot create section "test" (1 error)
FATAL: Section "test" already declared as fixed at different address $c000
at section-union-mismatch.asm(2)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared as `SECTION UNION`
at section-union.asm(37)
FATAL: Cannot create section "test" (1 error)
FATAL: Section "test" already declared as `SECTION UNION`
at section-union.asm(37)
+1 -3
View File
@@ -1,4 +1,2 @@
error: Section already declared as fixed at incompatible address $c001
at union-mismatch.asm(2)
FATAL: Cannot create section "fixed" (1 error)
FATAL: Section "fixed" already declared as fixed at incompatible address $c001
at union-mismatch.asm(2)