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]

a custom driver for the visible cpp [patch]



This patch implements the user-visible cpp as a custom gcc driver.  It
is somewhat longer than necessary because I took the opportunity to
get rid of a bunch of Makefile cruft.  The important part is
cppspec.c.

I have run a bootstrap with this, and I have put xcpp through its
paces, but I haven't beaten on it extensively or tested
cross-compilation.

zw

1999-03-10 09:15 -0500  Zack Weinberg  <zack@rabi.columbia.edu>

	* cppspec.c: New file defining a lang_specific_driver which
	defaults to -E (i.e. preprocess only) and assumes any
	unrecognized files are preprocessor input.
	* cpp.sh: Removed.

	* Makefile.in (install-cpp): Install xcpp, not cpp.sh.  Use
	CPP_INSTALL_NAME.
	(all.build, start.encap): Depend on xcpp.
	(xcpp, gccspec.o, cppspec.o): New targets.
	(xgcc): Link in gccspec.o.

	* cp/Make-lang.in: Remove all references to g++.o/g++.c, and
	link g++ from gcc.o.
	* f/Make-lang.in: Likewise, with g77.o/g77.c.
	* java/Make-lang.in: Likewise, with $(GCJ).o/$(GCJ).c.
	* gcc.c: All code formerly dependent on LANG_SPECIFIC_DRIVER
	defined is now compiled unconditionally.
	* gccspec.c: New file defining stub lang_specific_driver and
	lang_specific_pre_link functions.

begin-base64 644 cppdriver.diff.gz
H4sICPd95jYAA2NwcGRyaXZlci5kaWZmAOQ7a3cax5KfxdkfUVG8EWgYBEgy
AlYbY4RksrKkAyiO1/Hi0dAjxoYZMg89kvi/b1V1zwsGPRyfcz9cHScz091V
XV3v7i4OD7/9r9B3JuKuBW+NL8KyZ6JiOwVd19PfG7Vms7lT3d2pNqH6srVX
be0dbNQq9b1qQdO03JG1KtT2WrV6a7dRePUK9L3GbvklaPRowKtXBSjAj9Ax
g9CYgWPMBQQuhL6A26lwwHb8wJjNbOcaDOwN7BsBpjtf4BxepQAn3e64fzYc
dU5Px2edtz04hE/B4daL4sJzrz1jPg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prYhjkwRlBwKkIbUiFsGJFjLNAmDWaR64xaBwyCesl5sNVKzlSrk2Bb
1CET3EAmpy8w8MDVDLg2MrW0MjaBVTNGsBlukDqctRb4AAIdIwVtUH0ErIl0
lRUV9JMy8/RB9oCm2sAHiCjoFhQBfa8L2n+pC9p8aQs0N0FBpdpQW0nFQamW
CwAxla6IikwAAA==
====


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