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]

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268

--- Comment #6 from hongxu jia <hongxu.jia at windriver dot com> ---
(In reply to rguenther@suse.de from comment #5)
> On Thu, 17 Mar 2016, hongxu.jia at windriver dot com wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268
> > 
> > --- Comment #3 from hongxu jia <hongxu.jia at windriver dot com> ---
> > (In reply to Richard Biener from comment #2)
> > > IMHO it doesn't make sense to prune system header paths here and having them 
> > > is desired.
> > 
> > Hi Richard,
> > 
> > It is just a simple example to explain the requirements.
> > 
> > In our OpenEmbedded project, we do many cross complication,
> > and have very complex build path.
> > 
> > Here is the actual use of option '-fdebug-prefix-map' in our project:
> > 
> > DEBUG_FLAGS="-g -feliminate-unused-debug-types
> > -fdebug-prefix-map=/buildarea/raid0/hjia/build-20160316-yocto-buildpath-2/tmp/work/core2-64-poky-linux/service/0.1-r0/service-0.1=/usr/src/service
> > -fdebug-prefix-map=/buildarea/raid0/hjia/build-20160316-yocto-buildpath-2/tmp/work/core2-64-poky-linux/service/0.1-r0/service-0.1=/usr/src/service
> > -fdebug-prefix-map=/buildarea/raid0/hjia/build-20160316-yocto-buildpath-2/tmp/sysroots/x86_64-linux=
> > -fdebug-prefix-map=/buildarea/raid0/hjia/build-20160316-yocto-buildpath-2/tmp/sysroots/qemux86-64=
> > "
> 
> I see.  Care to propose a patch then?

Yes, also sent to gcc-patches@gcc.gnu.org for review

//Hongxu

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