bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFE: more than 16-bit line numbers


From: Scott McPeak
Subject: Re: RFE: more than 16-bit line numbers
Date: Sat, 11 May 2002 09:37:46 -0700 (PDT)

The patch does appear to work.  ("format" is misspelled in the comment)

However I'd still suggest the message give a hint as to how to fix the
problem.  As it stands, the message wouldn't have told me anything I
didn't already know (namely, line numbers are truncated).  Even just a
word or two that Google will know would be enough.

-Scott


On 11 May 2002, Nick Clifton wrote:

> Hi Scott,
>
>   Doh!  I really should check my patches carefully before sending them
>   out.  The previous version would always complain because I goofed
>   the check for negative values.  Please try this version instead.
>
> Cheers
>         Nick
>
> Index: gas/stabs.c
> ===================================================================
> RCS file: /cvs/src/src/gas/stabs.c,v
> retrieving revision 1.16
> diff -c -3 -p -w -r1.16 stabs.c
> *** gas/stabs.c       3 May 2002 02:25:33 -0000       1.16
> --- gas/stabs.c       11 May 2002 10:40:06 -0000
> *************** s_stab_generic (what, stab_secname, stab
> *** 240,245 ****
> --- 240,253 ----
>     other = longint;
>
>     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
> +        foramt, probably DWARF.  */
> +     as_warn (_(".stab%c: description field '%x' does not fit into 16 bits"),
> +          what, desc);
> +
>     if (what == 's' || what == 'n')
>       {
>         if (*input_line_pointer != ',')
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]