This is the mail archive of the gcc-patches@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: Final intermodule patch


On Sun, Jul 13, 2003 at 12:17:42PM -0700, Mark Mitchell wrote:
> The flawed aspect of the patch, in my opinion, is the attempt to output
> a single .s file from multiple input files.

I disagree.  I think it's a fine solution.

> > I was hoping that DWARF-2 could handle this.

AFAIK, *all* debugging formats can handle this.  Otherwise debugging
of current nested functions wouldn't work, nor would printing of 
function-scope static variables.  Since they do...

> It's valgrind or Purify, when showing backtraces.  

In both cases you can get a file/line-number backtrace as well, which
will be more useful than a strict symbol backtrace any day.

> Why?  As far as I know, GCC has also named a static "foo" function as
> "foo".  It's never been "foo.n" until now.

I think the easiest solution to this is to only rename static symbols
when there exists another static symbol of the same name.  So unless
there are two "foo" symbols, from different source files, nothing should
get renamed.

I think that'll be the common case by far.


r~


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