This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: add LTRANS driver
Paolo Bonzini <bonzini@gnu.org> writes:
> The ltrans-driver script is more easily written like this:
>
> (echo LTRANS_FLAGS = -xlto -fltrans
> echo all:
> for input
> do
> output=`basename $input | sed 's/\.o$//' `.ltrans.o
> echo "all: $output"
> echo "$output: $input"
> echo " \$(CC) \$(CFLAGS) \$(LTRANS_FLAGS) -o $output $input"
> done) | ${MAKE-make} -f -
>
> without the trap, the temporary directory, and everything else. :-)
You don't need the extra subshell either. :-)
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."