Improved error messages on redefinitions of constants and bit-fields.
This commit is contained in:
@@ -801,7 +801,7 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign
|
|||||||
if (Entry) {
|
if (Entry) {
|
||||||
|
|
||||||
/* We have a symbol with this name already */
|
/* We have a symbol with this name already */
|
||||||
Error ("Multiple definition for '%s'", Name);
|
Error ("Multiple definition for bit-field '%s'", Name);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -834,7 +834,7 @@ SymEntry* AddConstSym (const char* Name, const Type* T, unsigned Flags, long Val
|
|||||||
if ((Entry->Flags & SC_CONST) != SC_CONST) {
|
if ((Entry->Flags & SC_CONST) != SC_CONST) {
|
||||||
Error ("Symbol '%s' is already different kind", Name);
|
Error ("Symbol '%s' is already different kind", Name);
|
||||||
} else {
|
} else {
|
||||||
Error ("Multiple definition for '%s'", Name);
|
Error ("Multiple definition for constant '%s'", Name);
|
||||||
}
|
}
|
||||||
return Entry;
|
return Entry;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user