This is the mail archive of the 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: update_path in gcc/prefix.h?

Hello All

I = Basile STARYNKEVITCH wrote:
Daniel Jacobowitz wrote:
On Wed, Mar 12, 2008 at 04:06:52PM +0100, Basile STARYNKEVITCH wrote:
What is the exact intent of the update_path in gcc/prefix.[hc]?

Very complicated and underdocumented; I avoid it for that reason. Can't you use an existing directory variable, like gcc_libexec_prefix?

Thanks for the suggestion. I'll probably try.

I'm trying just now, and I believe I cannot use it as is (remember that I want to read a file within cc1!) because:

* gcc_libexec_prefix appears only in gcc/gcc.c; in the current trunk (r133208) it is a static char* variable declared in gcc/gcc.c line 1476 and used in the static function process_command between lines 3411 and 3463

* I want to have the value of $(libexecsubdir)/melt-private-include/ (in gcc/ parlance) from within a pass (or some initialization in) the cc1 (& related) backends.

So how do I get $(libexecsubdir)/melt-private-include/ from within C code of cc1?

email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

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