This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems in libgcc2.c:__bb_exit_function & __bb_init_func
- To: Dan Nicolaescu <dann at adaptive dot ics dot uci dot edu>
- Subject: Re: problems in libgcc2.c:__bb_exit_function & __bb_init_func
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Sun, 28 Mar 1999 01:26:38 -0700
- cc: egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <9901302350.aa06648@paris.ics.uci.edu>you write:
> I was trying to determing why when I use gcc -ax -g the bb.out file
> does not contain line numbers.
>
> I got to the following sequence in libgcc2.c:__bb_exit_function
>
>
> /* We check the length field explicitly in order to allow compatibili
> ty
> with older GCC's which did not provide it. */
>
> for (ptr = bb_head; ptr != (struct bb *) 0; ptr = ptr->next)
> {
> int i;
> int func_p = (ptr->nwords >= sizeof (struct bb)
> && ptr->nwords <= 1000
> && ptr->functions);
> int line_p = (func_p && ptr->line_nums);
> int file_p = (func_p && ptr->filenames);
>
>
> On an i386-linux-gnu
> ptr->nwords is 40
> and
> sizeof (struct bb) is 44
>
> so func_p is 0 that determines that the line numbers and file name are
> not printed in the bb.out file.
[ ... ]
Presumably this was fixed by your change to final.c::end_final?
jeff