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: this_input_filename patch introduced bug


Geoffrey Keating wrote:

I think it'll be OK. I'm not sure that a "main input filename" is such a useful concept any more; if it's a problem that main_input_filename doesn't match in_fnames[0], it's likely a problem that it doesn't match in_fnames[1] too.

In my compile server code, I set main_input_filename to (the equivalent) of in_fnames[i] for the current i. I.e. it replaces the new this_input_filename. We may need in_fnames[0] before we start processing the input files (e.g. for some debugging formats), but once i>0 it is probably more useful to have main_input_filename be in_fnames[i] rather than in_fnames[0].
--
--Per Bothner
per@bothner.com http://per.bothner.com/




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