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: [PATCH] add -foverride-comp-dir


Mark Mitchell wrote:
Daniel Jacobowitz wrote:
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 kind of
replacement of paths in the debugging sections when we generate separate
debuginfo files, but it would certainly be better if already the compiler
could do that. The only issue would be that gas generates debuginfo too for
assembly sources and for that we'd need a similar switch for assembler I'd
guess.

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.


__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.

--
Dan Aloni, Linux specialist
XIV LTD, http://www.xivstorage.com
da-x@monatomic.org, da-x@colinux.org, da-x@gmx.net, dan@xiv.co.il


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