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


Dan Aloni 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.

It's not always a relative pathname -- and inside header files it evaluates to the name of the header, which is often an absolute path.


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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