update_path in gcc/prefix.h?

Basile STARYNKEVITCH basile@starynkevitch.net
Fri Mar 14 10:31:00 GMT 2008


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/Makefile.in parlance) from within a pass (or some initialization in) 
the cc1 (& related) backends. 
http://gcc.gnu.org/ml/gcc/2008-03/msg00551.html

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

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
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} ***



More information about the Gcc mailing list