3 test "x${BUILD}" != "x" || BUILD=$REG_DEFAULT_BUILD
7 test "x${REG_TARGET}" != "x" || REG_TARGET=$HOST
8 test "x${REG_CONFOPTS}" != "x" || REG_CONFOPTS=""
9 test "${BUILD}" = "${TARGET}" -a -n "${BINUTILS}" \
10 || export PATH=${BINUTILS}:${PATH}
16 export REG_CHANGESET_LIST=`pwd`/${BUGID}.list
18 ########################################################################
19 # LOW_PATCH and HIGH_PATCH are for reg_search_id.
20 ########################################################################
23 HIGH_PATCH=`wc -l $REG_CHANGESET_LIST | awk '{ print $1 }'`
25 ########################################################################
26 # REG_NEWMID, REG_FAILLIST, REG_CHECKFAIL, and REG_REPORTFAIL are
27 # used by reg-hunt and auxiliary scripts to continue a hunt after a
28 # build failure. If REG_NEWMID is not defined then they are all
30 ########################################################################
32 #export REG_NEWMID=${REG_BIN}/reg-newmid
33 #export REG_FAILLIST=`pwd`/gcc-fails-${BUILD_KIND}
34 export REG_CHECKFAIL=${REG_BIN}/gcc-svn-checkfail
35 export REG_RECORDFAIL=${REG_BIN}/gcc-svn-recordfail
37 ########################################################################
38 # REG_UPDATE, REG_BUILD, and REG_TEST are used by several scripts.
39 # You can use these or provide your own.
40 ########################################################################
42 export REG_UPDATE=${REG_BIN}/gcc-svn-update
44 export REG_BUILD=${REG_BIN}/gcc-build-${BUILD_KIND}
45 # Variables defined below are specific to gcc-build-${BUILD_KIND}
46 REG_CONFOPTS="$REG_CONFOPTS --build=${BUILD}"
47 REG_CONFOPTS="$REG_CONFOPTS --host=${HOST}"
48 REG_CONFOPTS="$REG_CONFOPTS --target=${REG_TARGET}"
49 if [ -n "$GMP" ]; then
50 REG_CONFOPTS="$REG_CONFOPTS --with-gmp=$GMP"
51 REG_CONFOPTS="$REG_CONFOPTS --with-mpfr=$GMP"
53 REG_CONFOPTS="$REG_CONFOPTS --disable-libmudflap"
54 REG_CONFOPTS="$REG_CONFOPTS --disable-libssa"
56 if [ "${BUILD_KIND}" != "simple" -a -n "${BINUTILS}" ]; then
57 REG_CONFOPTS="$REG_CONFOPTS --with-as=${BINUTILS}/as"
58 REG_CONFOPTS="$REG_CONFOPTS --with-ld=${BINUTILS}/ld"
66 simple) REG_COMPILER=cc1;;
67 full) REG_COMPILER=gcc;;
68 bootstrap) REG_COMPILER=gcc;;
69 *) msg 0 "unrecognized BUILD_KIND: $BUILD_KIND"; exit 1;
76 simple) REG_COMPILER=cc1plus;;
77 full) REG_COMPILER=g++;;
78 bootstrap) REG_COMPILER=g++;;
79 *) msg 0 "unrecognized BUILD_KIND: $BUILD_KIND"; exit 1;
86 simple) REG_COMPILER=f771;;
87 full) REG_COMPILER=g77;;
88 bootstrap) REG_COMPILER=g77;;
89 *) msg 0 "unrecognized BUILD_KIND: $BUILD_KIND"; exit 1;
96 simple) REG_COMPILER=f951;;
97 full) REG_COMPILER=gfortran;;
98 bootstrap) REG_COMPILER=gfortran;;
99 *) msg 0 "unrecognized BUILD_KIND: $BUILD_KIND"; exit 1;
102 *) msg 0 "unrecognized LANG: $LANG"; exit 1;;
106 export REG_GCCSRC=${REG_SRCDIR}/gcc
110 export REG_TEST=${REG_BIN}/gcc-test-${BUG_KIND}
111 # Variables defined below are specific to gcc-${BUG_KIND}
113 simple) REG_TEST_COMPILER="${REG_OBJDIR}/gcc/${REG_COMPILER} -quiet";;
114 *) REG_TEST_COMPILER="${REG_PREFIX}/bin/${REG_COMPILER}";
117 *) REG_TEST_COMPILER="$REG_TEST_COMPILER -c";;
121 export REG_TEST_COMPILER
122 export REG_OPTS="${OPTS}"
123 export REG_TESTCASE=${BUGID}.${SUFFIX}
125 # Return values of the test scripts depend on whether we're looking
126 # for the patch that introduced a bug or the one that fixed it.
128 break) REG_PASS=1; REG_FAIL=0;;
129 fix) REG_PASS=0; REG_FAIL=1;;
130 *) msg 0 "error: unrecognized FIND: $FIND"; exit 1;;
133 export REG_PASS REG_FAIL REG_ERROR