Warn about a description field that is too big.
This commit is contained in:
parent
20cb8cdaf3
commit
6360824b6e
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
|
2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
|
* stabs.c (s_stab_generic): Warn about a description field that is
|
||||||
|
too big.
|
||||||
|
|
||||||
* config/obj-coff.c: Fix compile time warnings when compiling
|
* config/obj-coff.c: Fix compile time warnings when compiling
|
||||||
without BFD_ASSEMBLER defined.
|
without BFD_ASSEMBLER defined.
|
||||||
Fix formatting.
|
Fix formatting.
|
||||||
|
|
|
@ -240,6 +240,14 @@ s_stab_generic (what, stab_secname, stabstr_secname)
|
||||||
other = longint;
|
other = longint;
|
||||||
|
|
||||||
desc = get_absolute_expression ();
|
desc = get_absolute_expression ();
|
||||||
|
|
||||||
|
if ((desc > 0xffff) || (desc < -0x8000))
|
||||||
|
/* This could happen for example with a source file with a huge
|
||||||
|
number of lines. The only cure is to use a different debug
|
||||||
|
format, probably DWARF. */
|
||||||
|
as_warn (_(".stab%c: description field '%x' too big, maybe you could a different debug format"),
|
||||||
|
what, desc);
|
||||||
|
|
||||||
if (what == 's' || what == 'n')
|
if (what == 's' || what == 'n')
|
||||||
{
|
{
|
||||||
if (*input_line_pointer != ',')
|
if (*input_line_pointer != ',')
|
||||||
|
|
Loading…
Reference in a new issue