Improved error messages on redefinitions of constants and bit-fields.

This commit is contained in:
acqn 2020-08-03 01:15:57 +08:00 committed by Oliver Schmidt
parent ef5a4db12e
commit e8c2886455

View file

@ -801,7 +801,7 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign
if (Entry) {
/* We have a symbol with this name already */
Error ("Multiple definition for '%s'", Name);
Error ("Multiple definition for bit-field '%s'", Name);
} else {
@ -834,7 +834,7 @@ SymEntry* AddConstSym (const char* Name, const Type* T, unsigned Flags, long Val
if ((Entry->Flags & SC_CONST) != SC_CONST) {
Error ("Symbol '%s' is already different kind", Name);
} else {
Error ("Multiple definition for '%s'", Name);
Error ("Multiple definition for constant '%s'", Name);
}
return Entry;
}