This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems in libgcc2.c:__bb_exit_function & __bb_init_func




  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]