#! /bin/sh -e # All lines beginning with `# DPATCH:' are a description of the patch. # DP: dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 #cd ${dir}gcc && autoconf ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 #rm ${dir}gcc/configure ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 --- gcc/gcc.c 2004-09-13 14:30:15.995139424 +0000 +++ gcc/gcc.c 2004-09-13 14:38:58.731671392 +0000 @@ -6160,6 +6160,21 @@ /* Process any user specified specs in the order given on the command line. */ + + GET_ENVIRONMENT (specs_file, "GCC_SPECS"); + if (specs_file) + { + struct user_specs *user = (struct user_specs *) + xmalloc (sizeof (struct user_specs)); + + user->next = (struct user_specs *) 0; + user->filename = specs_file; + if (user_specs_tail) + user_specs_tail->next = user; + else + user_specs_head = user; + user_specs_tail = user; + } for (uptr = user_specs_head; uptr; uptr = uptr->next) { char *filename = find_a_file (&startfile_prefixes, uptr->filename,