delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/04/17:47:43

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
Newsgroups: gnu.gcc.help,comp.os.msdos.djgpp
Subject: Re: Specs file format
Date: Mon, 01 Sep 1997 14:34:51 +0200
Organization: TU Chemnitz-Zwickau
Lines: 35
Message-ID: <340AB66B.4C25FF5E@Mathematik.TU-Chemnitz.DE>
References: <340A8D94 DOT FD178219 AT ricardis DOT tudelft DOT nl>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ivo Janssen wrote:
> 
> But I want a command between cc1 and as. So I looked up the default spec
> for the compiler in "static struct compiler default_compilers[]"
> and put it in the specs file, with my own rule between the calling
> of cc1 and as (they're both called from "default_compilers[]")
> 
> My question is: Can I name this rule "*cc1_command:" or how is this
> done?

No.

Now I looked also in gcc.c and found, that you can overwrite in
the specs file, any builtin "default compiler spec" by adding
some lines to the specs file. For instance:

.c: .....

Will execute what ever stands for the .....
But please do not ask me now what the exact syntax is
(probably the same like in gcc.c but the best would be
to look in gcc.c and try to understand how 'read_specs()'
work.

BTW: If you got it working, I would be interested
in the exact way you did it.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019