[Top][All Lists]

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

Re: RFE: more than 16-bit line numbers

From: Nick Clifton
Subject: Re: RFE: more than 16-bit line numbers
Date: 11 May 2002 10:53:50 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Hi Scott,

> In that case, I might change my RFE to request that 'as' emit a
> warning when it encodes a stabs n_desc value that does not fit in
> 16 bits; the warning might suggest -ggdb or -gdwarf-2.

Please could you try out the attached patch and let me know if it
generates the warning message appropriately.


PS.  I was not sure if it was appropriate for the warning message to
suggest a different debug format, so I put the idea into a comment

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 09:51:25 -0000
*************** s_stab_generic (what, stab_secname, stab
*** 240,245 ****
--- 240,252 ----
    other = longint;
    desc = get_absolute_expression ();
+   if (desc > 0xffff || desc < 0xffff8000)
+     /* 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 does not fit into 16 bits"), what);
    if (what == 's' || what == 'n')
        if (*input_line_pointer != ',')

reply via email to

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