diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/Makefile.in | 51 | ||||
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/Makefile.adalib | 3 | ||||
-rw-r--r-- | gcc/ada/Makefile.in | 9 | ||||
-rwxr-xr-x | gcc/configure | 8 | ||||
-rw-r--r-- | gcc/configure.in | 8 | ||||
-rw-r--r-- | gcc/f/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/f/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/fixinc/check.tpl | 10 | ||||
-rwxr-xr-x | gcc/fixinc/fixinc.dgux | 4 | ||||
-rwxr-xr-x | gcc/fixinc/fixinc.svr4 | 8 | ||||
-rw-r--r-- | gcc/fixinc/fixinc.winnt | 4 | ||||
-rwxr-xr-x | gcc/fixinc/fixincl.sh | 4 | ||||
-rwxr-xr-x | gcc/fixproto | 4 | ||||
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/po/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/po/exgettext | 2 | ||||
-rw-r--r-- | gcc/treelang/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/treelang/Make-lang.in | 12 |
21 files changed, 102 insertions, 62 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83d7a77..916b416 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Makefile.in: Allow for PWDCMD to override hardcoded pwd. + * configure.in: Likewise. + * fixinc/check.tpl: Likewise. + * fixinc/fixinc.dgux: Likewise. + * fixinc/fixinc.svr4: Likewise. + * fixinc/fixinc.winnt: Likewise. + * fixinc/fixincl.sh: Likewise. + * fixproto: Likewise. + * configure: Regenerate. + 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> Basic block renumbering removal: diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 5791e8e..72943fa 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -112,6 +112,11 @@ AR_FLAGS = rc DLLTOOL = dlltool RANLIB = @RANLIB@ SHELL = /bin/sh +# pwd command to use. Allow user to override default by setting PWDCMD in +# the environment to account for automounters. The make variable must not +# be called PWDCMD, otherwise the value set here is passed to make +# subprocesses and overrides the setting from the user's environment. +PWD = $${PWDCMD-pwd} # on sysV, define this as cp. INSTALL = @INSTALL@ # Some systems may be missing symbolic links, regular links, or both. @@ -2163,7 +2168,7 @@ fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \ $(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \ $(FIXINCSRCDIR)/server.c $(FIXINCSRCDIR)/gnu-regex.h \ $(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def specs.ready - (MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc && pwd` ; \ + (MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc && ${PWD}` ; \ CC="$(HOST_CC)"; CFLAGS="$(HOST_CFLAGS)"; LDFLAGS="$(HOST_LDFLAGS)"; \ WARN_CFLAGS="$(WARN_CFLAGS)"; \ export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS; cd ./fixinc && \ @@ -2173,10 +2178,10 @@ fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \ stmp-fixinc: fixinc.sh gsyslimits.h rm -rf include; mkdir include -chmod a+rx include - (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); pwd`; \ + (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD}`; \ SHELL='$(SHELL)' ;\ export TARGET_MACHINE srcdir SHELL ; \ - $(SHELL) ./fixinc.sh `pwd`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \ + $(SHELL) ./fixinc.sh `${PWD}`/include $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS); \ rm -f include/syslimits.h; \ if [ -f include/limits.h ]; then \ mv include/limits.h include/syslimits.h; \ @@ -2787,7 +2792,7 @@ install-headers: $(INSTALL_HEADERS_DIR) # Don't need to use LN_S here since we really do need ln -s and no substitutes. -files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \ if [ $$? -eq 0 ]; then \ - dir=`cd include; pwd`; \ + dir=`cd include; ${PWD}`; \ for i in $$files; do \ dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \ if expr "$$dest" : "$$dir.*" > /dev/null; then \ @@ -2809,7 +2814,7 @@ install-headers-tar: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir # Unless a full pathname is provided, some shells would print the new CWD, # found in CDPATH, corrupting the output. We could just redirect the # output of `cd', but some shells lose on redirection within `()'s - (cd `pwd`/include ; \ + (cd `${PWD}`/include ; \ tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar xpf - ) # /bin/sh on some systems returns the status of the first tar, # and that can lose with GNU tar which always writes a full block. @@ -2818,7 +2823,7 @@ install-headers-tar: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir # Install the include directory using cpio. install-headers-cpio: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir # See discussion about the use of `pwd` above - cd `pwd`/include ; \ + cd `${PWD}`/include ; \ find . -print | cpio -pdum $(libsubdir)/include # Install the include directory using cp. @@ -2863,8 +2868,8 @@ site.exp: ./config.status Makefile @echo "## these variables are automatically generated by make ##" > ./tmp0 @echo "# Do not edit here. If you wish to override these values" >> ./tmp0 @echo "# add them to the last section" >> ./tmp0 - @echo "set rootme \"`pwd`\"" >> ./tmp0 - @echo "set srcdir \"`cd ${srcdir}; pwd`\"" >> ./tmp0 + @echo "set rootme \"`${PWD}`\"" >> ./tmp0 + @echo "set srcdir \"`cd ${srcdir}; ${PWD}`\"" >> ./tmp0 @echo "set host_triplet $(host_canonical)" >> ./tmp0 @echo "set build_triplet $(build_canonical)" >> ./tmp0 @echo "set target_triplet $(target)" >> ./tmp0 @@ -2932,52 +2937,52 @@ $(TESTSUITEDIR)/site.exp: site.exp sed '/set tmpdir/ s|testsuite|$(TESTSUITEDIR)|' < site.exp > $@ check-g++: $(TESTSUITEDIR)/site.exp - -(rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -(rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd $(TESTSUITEDIR); \ EXPECT=${EXPECT} ; export EXPECT ; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ $(RUNTEST) --tool g++ $(RUNTESTFLAGS)) check-gcc: $(TESTSUITEDIR)/site.exp - -(rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -(rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd $(TESTSUITEDIR); \ EXPECT=${EXPECT} ; export EXPECT ; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ $(RUNTEST) --tool gcc $(RUNTESTFLAGS)) check-g77: $(TESTSUITEDIR)/site.exp - -(rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -(rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd $(TESTSUITEDIR); \ EXPECT=${EXPECT} ; export EXPECT ; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ $(RUNTEST) --tool g77 $(RUNTESTFLAGS)) check-objc: $(TESTSUITEDIR)/site.exp - -(rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -(rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd $(TESTSUITEDIR); \ EXPECT=${EXPECT} ; export EXPECT ; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ $(RUNTEST) --tool objc $(RUNTESTFLAGS)) check-consistency: testsuite/site.exp - -rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd testsuite; \ EXPECT=${EXPECT} ; export EXPECT ; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ $(RUNTEST) --tool consistency $(RUNTESTFLAGS) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 25a91b0..4065003 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd. + * Makefile.in: Likewise. + 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools): diff --git a/gcc/ada/Makefile.adalib b/gcc/ada/Makefile.adalib index e43c1b6..3ac2561 100644 --- a/gcc/ada/Makefile.adalib +++ b/gcc/ada/Makefile.adalib @@ -42,10 +42,11 @@ # updating the value of the environment variable ADA_OBJECTS_PATH SHELL=sh +PWD=$${PWDCMD-pwd} CC = gcc AR = ar -GNAT_ROOT = $(shell cd $(ROOT);pwd)/ +GNAT_ROOT = $(shell cd $(ROOT);${PWD})/ target = $(shell $(CC) -dumpmachine) version = $(shell $(CC) -dumpversion) ADA_INCLUDE_PATH = $(GNAT_ROOT)lib/gcc-lib/$(target)/$(version)/adainclude/ diff --git a/gcc/ada/Makefile.in b/gcc/ada/Makefile.in index 8e867e1..9783b42 100644 --- a/gcc/ada/Makefile.in +++ b/gcc/ada/Makefile.in @@ -115,6 +115,7 @@ RANLIB = ranlib # Test to use to see whether ranlib exists on the system. RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ] SHELL = /bin/sh +PWD = $${PWDCMD-pwd} # How to copy preserving the date INSTALL_DATA_DATE = cp -p MAKEINFO = makeinfo @@ -192,10 +193,10 @@ TREE_H = $(srcdir)/../tree.h $(srcdir)/../real.h $(srcdir)/../tree.def \ $(MACHMODE_H) $(srcdir)/../tree-check.h $(srdir)/../version.h \ $(srcdir)/../builtins.def -fsrcdir := $(shell cd $(srcdir);pwd) -fsrcpfx := $(shell cd $(srcdir);pwd)/ -fcurdir := $(shell pwd) -fcurpfx := $(shell pwd)/ +fsrcdir := $(shell cd $(srcdir);${PWD}) +fsrcpfx := $(shell cd $(srcdir);${PWD})/ +fcurdir := $(shell ${PWD}) +fcurpfx := $(shell ${PWD})/ # Top build directory, relative to here. top_builddir = .. diff --git a/gcc/configure b/gcc/configure index 046fdcb..bc3e9c7 100755 --- a/gcc/configure +++ b/gcc/configure @@ -6659,9 +6659,9 @@ fi esac # Get an absolute path to the GCC top-level source directory -holddir=`pwd` +holddir=`${PWDCMD-pwd}` cd $srcdir -topdir=`pwd` +topdir=`${PWDCMD-pwd}` cd $holddir # Conditionalize the makefile for this host machine. @@ -8139,7 +8139,7 @@ fi # Nothing to do for FLOAT_H, float_format already handled. -objdir=`pwd` +objdir=`${PWDCMD-pwd}` # Process the language and host/target makefile fragments. @@ -8786,7 +8786,7 @@ esac if test "$symbolic_link" = "ln -s"; then for d in .. ${subdirs} fixinc ; do if test $d != ..; then - STARTDIR=`pwd` + STARTDIR=`${PWDCMD-pwd}` cd $d for t in stage1 stage2 stage3 stage4 include do diff --git a/gcc/configure.in b/gcc/configure.in index e47b668..6d07d67 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1008,9 +1008,9 @@ fi esac # Get an absolute path to the GCC top-level source directory -holddir=`pwd` +holddir=`${PWDCMD-pwd}` cd $srcdir -topdir=`pwd` +topdir=`${PWDCMD-pwd}` cd $holddir # Conditionalize the makefile for this host machine. @@ -2383,7 +2383,7 @@ fi) AC_SUBST(slibdir) # Nothing to do for FLOAT_H, float_format already handled. -objdir=`pwd` +objdir=`${PWDCMD-pwd}` AC_SUBST(objdir) # Process the language and host/target makefile fragments. @@ -2504,7 +2504,7 @@ esac if test "$symbolic_link" = "ln -s"; then for d in .. ${subdirs} fixinc ; do if test $d != ..; then - STARTDIR=`pwd` + STARTDIR=`${PWDCMD-pwd}` cd $d for t in stage1 stage2 stage3 stage4 include do diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 1f14f90..fa13ad7 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. + 2002-05-09 Hassan Aurag <aurag@cae.com> * expr.c (ffeexpr_reduced_ugly2log_): Allow logicals-as-integers diff --git a/gcc/f/Make-lang.in b/gcc/f/Make-lang.in index d2daf34..6cdde9c 100644 --- a/gcc/f/Make-lang.in +++ b/gcc/f/Make-lang.in @@ -167,7 +167,7 @@ f/g77.dvi: $(srcdir)/f/g77.texi $(srcdir)/f/bugs.texi \ $(srcdir)/f/root.texi $(srcdir)/doc/include/fdl.texi \ $(srcdir)/doc/include/gpl.texi \ $(srcdir)/doc/include/funding.texi - s=`cd $(srcdir); pwd`; export s; \ + s=`cd $(srcdir); ${PWD}`; export s; \ cd f && $(TEXI2DVI) -I $$s/doc/include $$s/f/g77.texi $(srcdir)/f/g77.1: $(srcdir)/f/invoke.texi diff --git a/gcc/fixinc/check.tpl b/gcc/fixinc/check.tpl index a241d18..1f796fe 100644 --- a/gcc/fixinc/check.tpl +++ b/gcc/fixinc/check.tpl @@ -7,18 +7,18 @@ set -e TESTDIR=tests -TESTBASE=`cd $1;pwd` +TESTBASE=`cd $1;${PWDCMD-pwd}` [ -d ${TESTDIR} ] || mkdir ${TESTDIR} cd ${TESTDIR} -TESTDIR=`pwd` +TESTDIR=`${PWDCMD-pwd}` TARGET_MACHINE='*' -DESTDIR=`pwd`/res -SRCDIR=`pwd`/inc +DESTDIR=`${PWDCMD-pwd}`/res +SRCDIR=`${PWDCMD-pwd}`/inc FIND_BASE='.' VERBOSE=1 -INPUT=`pwd` +INPUT=`${PWDCMD-pwd}` ORIGDIR=${INPUT} export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE VERBOSE INPUT ORIGDIR diff --git a/gcc/fixinc/fixinc.dgux b/gcc/fixinc/fixinc.dgux index d73d4e8..39a5b63 100755 --- a/gcc/fixinc/fixinc.dgux +++ b/gcc/fixinc/fixinc.dgux @@ -95,7 +95,7 @@ if $LINKS; then for file in $files; do dest=`ls -ld $file | sed -n 's/.*-> //p'` if [ "$dest" ]; then - cwd=`pwd` + cwd=`${PWDCMD-pwd}` # In case $dest is relative, get to $file's dir first. cd ${INPUT} cd `echo ./$file | sed -n 's&[^/]*$&&p'` @@ -105,7 +105,7 @@ if $LINKS; then if [ $? = 0 ]; then cd $dest # X gets the dir that the link actually leads to. - x=`pwd` + x=`${PWDCMD-pwd}` # If link leads back into ${INPUT}, # make a similar link here. if expr $x : "${INPUT}/.*" > /dev/null; then diff --git a/gcc/fixinc/fixinc.svr4 b/gcc/fixinc/fixinc.svr4 index 4bb69fc..36906f9 100755 --- a/gcc/fixinc/fixinc.svr4 +++ b/gcc/fixinc/fixinc.svr4 @@ -1,7 +1,7 @@ #! /bin/sh # Install modified versions of certain ANSI-incompatible # native System V Release 4 system include files. -# Copyright (C) 1994, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. +# Copyright (C) 1994, 1996, 1997, 1998, 2000, 2002 Free Software Foundation, Inc. # Contributed by Ron Guilmette (rfg@monkeys.com). # # This file is part of GNU CC. @@ -103,18 +103,18 @@ if $LINKS; then for file in $files; do dest=`ls -ld $file | sed -n 's/.*-> //p'` if [ "$dest" ]; then - cwd=`pwd` + cwd=`${PWDCMD-pwd}` # In case $dest is relative, get to $file's dir first. cd ${INPUT} cd `echo ./$file | sed -n 's&[^/]*$&&p'` - rwd=`pwd` + rwd=`${PWDCMD-pwd}` # Check that the target directory exists. # Redirections changed to avoid bug in sh on Ultrix. (cd $dest) > /dev/null 2>&1 if [ $? = 0 ]; then cd $dest # X gets the dir that the link actually leads to. - x=`pwd` + x=`${PWDCMD-pwd}` # If link leads back into ${INPUT}, # make a similar link here. if expr "$dest" : '[^/][^/]*' >/dev/null && [ ! -h $dest ]; then diff --git a/gcc/fixinc/fixinc.winnt b/gcc/fixinc/fixinc.winnt index 8fd6e53..de0f847 100644 --- a/gcc/fixinc/fixinc.winnt +++ b/gcc/fixinc/fixinc.winnt @@ -35,7 +35,7 @@ # # See README-fixinc for more information. -ORIG_DIR=`pwd` +ORIG_DIR=`${PWDCMD-pwd}` # Directory containing the original header files. cd $2; SEDFILE=`${PWDCMD-pwd}`/fixinc-nt.sed @@ -65,7 +65,7 @@ if [ ! -d $LIB ]; then mkdir $LIB || exit 1 fi -ORIG_DIR=`pwd` +ORIG_DIR=`${PWDCMD-pwd}` # Make LIB absolute if it is relative. # Don't do this if not necessary, since may screw up automounters. diff --git a/gcc/fixinc/fixincl.sh b/gcc/fixinc/fixincl.sh index b84d701..422fc5c 100755 --- a/gcc/fixinc/fixincl.sh +++ b/gcc/fixinc/fixincl.sh @@ -8,7 +8,7 @@ # # See README-fixinc for more information. # -# fixincludes copyright (c) 1998, 1999, 2000 +# fixincludes copyright (c) 1998, 1999, 2000, 2002 # The Free Software Foundation, Inc. # # fixincludes is free software. @@ -84,7 +84,7 @@ export target_canonical # # Define PWDCMD as a command to use to get the working dir # in the form that we want. -PWDCMD=pwd +PWDCMD=${PWDCMD-pwd} case "`$PWDCMD`" in //*) diff --git a/gcc/fixproto b/gcc/fixproto index 3d65cbb..5f84880 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -4,7 +4,7 @@ # fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD # # COPYRIGHT -# Copyright (C) 1993, 1994, 1997, 1998 Free Software Foundation, Inc. +# Copyright (C) 1993, 1994, 1997, 1998, 2002 Free Software Foundation, Inc. # This file is part of GCC. # # GCC is free software; you can redistribute it and/or modify @@ -56,7 +56,7 @@ dirname=`echo "$0" | sed 's,^[^/]*$,.,;s,//*[^/]*$,,'` progname=`echo "$0" | sed 's,.*/,,'` -original_dir=`pwd` +original_dir=`${PWDCMD-pwd}` FIX_HEADER=${FIX_HEADER-$original_dir/fix-header} DEFINES="-D__STDC__=0 -D__cplusplus ${FIXPROTO_DEFINES}" diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 2838c43..5211468 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. + 2002-05-13 Mark Mitchell <mark@codesourcery.com> * jcf-write.c (write_classfile): Unlink the temporary file if it diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in index e814a10..798e656 100644 --- a/gcc/java/Make-lang.in +++ b/gcc/java/Make-lang.in @@ -329,7 +329,7 @@ $(srcdir)/java/gcj.info: $(srcdir)/java/gcj.texi \ java/gcj.dvi: $(srcdir)/java/gcj.texi $(srcdir)/doc/include/fdl.texi \ $(srcdir)/doc/include/gpl.texi - s=`cd $(srcdir); pwd`; export s; \ + s=`cd $(srcdir); ${PWD}`; export s; \ cd java && $(TEXI2DVI) -I $$s/doc/include $$s/java/gcj.texi $(srcdir)/java/gcj.1: $(srcdir)/java/gcj.texi diff --git a/gcc/po/ChangeLog b/gcc/po/ChangeLog index f12d7b7..9c901b4 100644 --- a/gcc/po/ChangeLog +++ b/gcc/po/ChangeLog @@ -1,3 +1,7 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * exgettext: Allow for PWDCMD to override hardcoded pwd. + 2002-05-10 Philipp Thomas <pthomas@suse.de> * tr.po, es.po, fr.po: Update to version for 20020415 diff --git a/gcc/po/exgettext b/gcc/po/exgettext index 712e3c4..0cf8a25 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -51,7 +51,7 @@ T=exg$$.d mkdir $T trap "rm -r $T" 0 -pwd=`pwd` +pwd=`${PWDCMD-pwd}` kopt=$pwd/$T/keyword-options emsg=$pwd/$T/emsgids.c posr=$pwd/$T/po-sources diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index 92abf83..c58c44c 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,7 @@ +2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. + 2002-05-11 Tim Josling <tej@melbpc.org.au> * treetree.c: (cpp_define) Add. diff --git a/gcc/treelang/Make-lang.in b/gcc/treelang/Make-lang.in index bd6f7e3..8fdb6d9 100644 --- a/gcc/treelang/Make-lang.in +++ b/gcc/treelang/Make-lang.in @@ -255,23 +255,23 @@ treelang.check: $(TESTSUITEDIR)/site.exp # patch files for new empty files as required for cvs. # STAMP does not cut it here as I need an empty file. touch $(srcdir)/testsuite/treelang/{a01gcco01runpgmerr,a01gcc.out01,a01gcc.out01err} - -rootme=`pwd`; export rootme; \ - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ + -rootme=`${PWD}`; export rootme; \ + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; \ cd testsuite; \ EXPECT=${EXPECT} ; export EXPECT ; \ TRANSFORM=$(program_transform_name); export TRANSFORM; \ if [ -f $${rootme}/../expect/expect ] ; then \ - TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; pwd` ; \ + TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD}` ; \ export TCL_LIBRARY ; fi ; \ - PATH=`cd ..;pwd`:$$PATH; export PATH; \ - gcc_extras="-B`cd ..;pwd` -B`cd ..;pwd`/treelang"; export gcc_extras; \ + PATH=`cd ..;${PWD}`:$$PATH; export PATH; \ + gcc_extras="-B`cd ..;${PWD}` -B`cd ..;${PWD}`/treelang"; export gcc_extras; \ $(RUNTEST) --tool treelang $(RUNTESTFLAGS) rm $(srcdir)/testsuite/treelang/{a01gcco01runpgmerr,a01gcc.out01,a01gcc.out01err} # GCC_EXTRAS="$(GCC_EXTRAS)"; export GCC_EXTRAS; \ # copy the output files from the current test to source ie say the new results are OK treelang.check.fix: force - srcdir=`cd ${srcdir}; pwd` ; export srcdir ; + srcdir=`cd ${srcdir}; ${PWD}` ; export srcdir ; -cp testsuite/treelang/*.out* t -cp testsuite/treelang/*runpgm* t -rm -f t/*nofilename |