1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-02-23 07:42:32 +00:00

as7: make multiply defined symbols non-fatal (as.s doesn't even warn!)

This commit is contained in:
Phil Budne
2016-03-29 11:05:52 -04:00
parent 7df9a14980
commit dbe494ea8b

View File

@@ -311,7 +311,9 @@ sub process_label {
else { # symbolic label
# error to have different values
if ( defined( $Label{$label} ) && $Label{$label} != $loc ) {
err('M', "Label $label multiply defined");
# non-fatal: as.s doesn't even warn!!!!
print STDERR "$file:$lineno: Label $label multiply defined\n"
if ($stage == 2);
}
else {
$Label{$label} = $loc;