This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] add -foverride-comp-dir
Mark Mitchell wrote:
Daniel Jacobowitz wrote:
__FILE__ evaluates to whatever you provide in the command-line as the
name of the .c file, and in almost every case it's a relative pathname.
So, we don't have a problem there.
On Mon, Oct 02, 2006 at 06:53:37AM -0400, Jakub Jelinek wrote:
Yeah, that would be likely helpful.
In Fedora Core we use a DWARF3 postprocessing utility to do this
replacement of paths in the debugging sections when we generate
debuginfo files, but it would certainly be better if already the
could do that. The only issue would be that gas generates debuginfo
assembly sources and for that we'd need a similar switch for
Do you think this would be more useful than the postprocessor? I
figured it wouldn't be - you'd still have to verify that it had caught
everything, and have a way to supply options to every single
compilation in the distro build process. But maybe you already have a
way to do that.
I think it's more complete that the postprocessor: in particular, the
postprocessor only handles debug information, but not __FILE__. So, I
think both approaches have potential utility.
Dan Aloni, Linux specialist
XIV LTD, http://www.xivstorage.com
firstname.lastname@example.org, email@example.com, firstname.lastname@example.org, email@example.com