This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: Speaking of DWARF-2 macro info


Daniel Berlin wrote:-

> On Mon, 25 Mar 2002, Neil Booth wrote:
> 
> 
> Oh, wait i know where it's from.
> 
> Why the heck do we do that.

Dunno.

> /* Called from debug_define in toplev.c.  The `buffer' parameter contains
> 11921      the tail part of the directive line, i.e. the part which is 
> past the
> 11922      initial whitespace, #, whitespace, directive-name, whitespace 
> part.  */
> 11923
> 11924   static void
> 11925   dwarf2out_define (lineno, buffer)
> 11926        unsigned lineno ATTRIBUTE_UNUSED;
> (gdb) l
> 11927        const char *buffer ATTRIBUTE_UNUSED;
> 11928   {
> 11929     static int initialized = 0;
> 11930     if (!initialized)
> 11931       {
> 11932         dwarf2out_start_source_file (0, primary_filename);
> 11933         initialized = 1;
> 11934       }
> 11935
> 
> This is where the second call comes from.

I see, so this dwarf2-specific weirdness, and the call in
cc_common_parse_file together make two calls.  It would be nice if the
above one could die, from the point of view of a uniform interface.

Neil.


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