Maintenance patch for protoize

Geoff Keating geoffk@ozemail.com.au
Tue Aug 31 22:41:00 GMT 1999


> Date: Tue, 17 Aug 1999 23:49:45 -0700
> From: Richard Henderson <rth@cygnus.com>
> Cc: law@cygnus.com, egcs-patches@gcc.gnu.org, brolley@cygnus.com,
>         bothner@cygnus.com
> 
> On Mon, Aug 16, 1999 at 03:46:34PM +1000, Geoff Keating wrote:
> > 	* Makefile.in (PREPROCESSOR_DEFINES): New macro.
> > 	(protoize.o):  Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
> > 	(unprotoize.o): Ditto.
> > 	(test-protoize-simple): Don't define STD_PROTO_DIR.
> 
> These are fine.
> 
> > 	(target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
> > 	(target_version): New variable, init to DEFAULT_TARGET_VERSION.
> 
> Where are these set besides to 0 in the makefile ...

In DRIVER_DEFINES:

DRIVER_DEFINES = \
  -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
  -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
  -DDEFAULT_TARGET_VERSION=\"$(version)\" \
  -DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \
  -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\"


The 'set-to-0' thing is historical, it's only used in the protoize
testing when it doesn't really matter what the variables are defined
to---tmp-proto.c needs them defined, and they have to be inside a
single shell argument, so they shouldn't contain quotes :-(.

-- 
Geoffrey Keating <geoffk@cygnus.com>



More information about the Gcc-patches mailing list