OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [contrib/] [reghunt/] [examples/] [common.config] - Blame information for rev 753

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 723 jeremybenn
. ../gcc-svn-env
2
 
3
test "x${BUILD}" != "x" || BUILD=$REG_DEFAULT_BUILD
4
export REG_BLD=$BUILD
5
HOST=$BUILD
6
 
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}
11
 
12
VERBOSITY=1
13
DATE_IN_MSG=1
14
 
15
export BUGID
16
export REG_CHANGESET_LIST=`pwd`/${BUGID}.list
17
 
18
########################################################################
19
# LOW_PATCH and HIGH_PATCH are for reg_search_id.
20
########################################################################
21
 
22
LOW_PATCH=1
23
HIGH_PATCH=`wc -l $REG_CHANGESET_LIST | awk '{ print $1 }'`
24
 
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
29
# ignored.
30
########################################################################
31
 
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
36
 
37
########################################################################
38
# REG_UPDATE, REG_BUILD, and REG_TEST are used by several scripts.
39
# You can use these or provide your own.
40
########################################################################
41
 
42
export REG_UPDATE=${REG_BIN}/gcc-svn-update
43
 
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"
52
  fi
53
  REG_CONFOPTS="$REG_CONFOPTS --disable-libmudflap"
54
  REG_CONFOPTS="$REG_CONFOPTS --disable-libssa"
55
 
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"
59
  fi
60
 
61
  case $LANG in
62
    c)
63
      REG_LANGS="c"
64
      SUFFIX=c
65
      case $BUILD_KIND in
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;
70
      esac
71
      ;;
72
    c++)
73
      REG_LANGS="c,c++"
74
      SUFFIX=cc
75
      case $BUILD_KIND in
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;
80
      esac
81
      ;;
82
    f77)
83
      REG_LANGS="c,f77"
84
      SUFFIX=f
85
      case $BUILD_KIND in
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;
90
      esac
91
      ;;
92
    f95)
93
      REG_LANGS="c,f95"
94
      SUFFIX=f90
95
      case $BUILD_KIND in
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;
100
      esac
101
      ;;
102
    *) msg 0 "unrecognized LANG: $LANG"; exit 1;;
103
  esac
104
  export REG_TARGET
105
  export REG_CONFOPTS
106
  export REG_GCCSRC=${REG_SRCDIR}/gcc
107
  export REG_LANGS
108
  export REG_COMPILER
109
 
110
export REG_TEST=${REG_BIN}/gcc-test-${BUG_KIND}
111
  # Variables defined below are specific to gcc-${BUG_KIND}
112
  case $BUILD_KIND in
113
    simple) REG_TEST_COMPILER="${REG_OBJDIR}/gcc/${REG_COMPILER} -quiet";;
114
    *)      REG_TEST_COMPILER="${REG_PREFIX}/bin/${REG_COMPILER}";
115
            case $BUG_KIND in
116
              wrong-code) ;;
117
              *)          REG_TEST_COMPILER="$REG_TEST_COMPILER -c";;
118
            esac;
119
            ;;
120
  esac
121
  export REG_TEST_COMPILER
122
  export REG_OPTS="${OPTS}"
123
  export REG_TESTCASE=${BUGID}.${SUFFIX}
124
 
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.
127
  case $FIND in
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;;
131
  esac
132
  REG_ERROR=2
133
  export REG_PASS REG_FAIL REG_ERROR

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.