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]
Other format: [Raw text]

Re: [PATCH] Hard-link to in-tree tools (take 2)


On Thu, May 19, 2005 at 02:43:39PM +0200, Paolo Bonzini wrote:
> 
> >That may be a non-problem, but if it crops up, we're going
> >to need to back out of this or else create the in-tree "linker" as a
> >shell script fragment to invoke the correct linker.
> > 
> >
> Like this?

Yes, like that.

> +# Create links to binutils, especially for in-tree builds, to make -B.
> +# use them.  We need hard links so that directories can be shuffled
> +# during toplevel bootstrap.
> +as$(exeext): $(ORIGINAL_AS_FOR_TARGET)
> +	@echo creating $@; rm -f $@; \
> +	case "$<" in \
> +	  ../*) echo $(LN) $< $@; $(LN) $< $@ || cp $< $@ ;; \
> +	  *) echo '#! /bin/sh' > $@; echo 'exec $< "$$@"' >> $@ ;; \
> +	esac

$(SHELL); also permissions.  I assume that #! is sufficiently portable
for GCC builds although we go out of our way to avoid relying on it
elsewhere.

> @@ -1779,7 +1796,7 @@ tree-ssa-loop-niter.o : tree-ssa-loop-ni
>     $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
>     tree-inline.h output.h $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \
>     $(FLAGS_H) tree-pass.h $(SCEV_H) $(TREE_DATA_REF_H) $(BASIC_BLOCK_H) \
> -   $(GGC_H) hard-reg-set.h tree-chrec.h
> +   $(GGC_H) hard-reg-set.h tree-chrec.h intl.h
>  tree-ssa-loop-ivcanon.o : tree-ssa-loop-ivcanon.c $(TREE_FLOW_H) $(CONFIG_H) \
>     $(SYSTEM_H) $(RTL_H) $(TREE_H) $(TM_P_H) $(CFGLOOP_H) $(PARAMS_H) \
>     tree-inline.h output.h $(DIAGNOSTIC_H) $(TM_H) coretypes.h $(TREE_DUMP_H) \

Unrelated I presume.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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