summaryrefslogtreecommitdiff
blob: dcd74371de145c8e005a5323d6f3fc9788af74ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
--- mercury-compiler-0.13.1.orig/configure	2006-12-01 22:37:01.000000000 +1300
+++ mercury-compiler-0.13.1/configure	2006-12-04 20:50:57.000000000 +1300
@@ -7410,21 +7410,21 @@
 
 echo "$as_me:$LINENO: result: $mercury_cv_unboxed_floats" >&5
 echo "${ECHO_T}$mercury_cv_unboxed_floats" >&6
-if test "$mercury_cv_unboxed_floats" = yes; then
-	if test "$BOOTSTRAP_MC" = ""; then
-		{ echo "$as_me:$LINENO: WARNING: Mercury compiler not yet installed -
-****	cannot use unboxed floats, bootstrapping using boxed floats
-****	after installation is complete you may want to reinstall
-****	from scratch so you can use unboxed floats, which are more
-****	efficient." >&5
-echo "$as_me: WARNING: Mercury compiler not yet installed -
-****	cannot use unboxed floats, bootstrapping using boxed floats
-****	after installation is complete you may want to reinstall
-****	from scratch so you can use unboxed floats, which are more
-****	efficient." >&2;}
-		mercury_cv_unboxed_floats=no
-	fi
-fi
+#if test "$mercury_cv_unboxed_floats" = yes; then
+#	if test "$BOOTSTRAP_MC" = ""; then
+#		{ echo "$as_me:$LINENO: WARNING: Mercury compiler not yet installed -
+#****	cannot use unboxed floats, bootstrapping using boxed floats
+#****	after installation is complete you may want to reinstall
+#****	from scratch so you can use unboxed floats, which are more
+#****	efficient." >&5
+#echo "$as_me: WARNING: Mercury compiler not yet installed -
+#****	cannot use unboxed floats, bootstrapping using boxed floats
+#****	after installation is complete you may want to reinstall
+#****	from scratch so you can use unboxed floats, which are more
+#****	efficient." >&2;}
+#		mercury_cv_unboxed_floats=no
+#	fi
+#fi
 if test "$mercury_cv_unboxed_floats" = yes; then
 	HAVE_BOXED_FLOATS="--unboxed-float"
 else
@@ -8980,34 +8980,34 @@
 
 if test "$BEST_GRADE_FOR_COMPILER" != "$BOOTSTRAP_GRADE"; then
 	if test "$BOOTSTRAP_MC" = ""; then
-		GRADE="$BOOTSTRAP_GRADE"
-		{ echo "$as_me:$LINENO: WARNING: Mercury compiler not yet installed
-****	cannot use grade \`$BEST_GRADE_FOR_COMPILER'
-****	using grade \`$GRADE' to compile the compiler
-****	after installation is complete you should reinstall
-****	from scratch so you can use the more efficient
-****	grade \`$BEST_GRADE_FOR_COMPILER'." >&5
-echo "$as_me: WARNING: Mercury compiler not yet installed
-****	cannot use grade \`$BEST_GRADE_FOR_COMPILER'
-****	using grade \`$GRADE' to compile the compiler
-****	after installation is complete you should reinstall
-****	from scratch so you can use the more efficient
-****	grade \`$BEST_GRADE_FOR_COMPILER'." >&2;}
-
+		if test "$BOOTSTRAP_STAGE" = "1"; then
+			GRADE="$BOOTSTRAP_GRADE"
+		else
+			GRADE=$BEST_GRADE_FOR_COMPILER
+			find library compiler browser mdbcomp analysis \
+				profiler deep_profiler slice \
+				-name \*.c -o -name \*.c_date | \
+				xargs rm > /dev/null 2>&1
+			find -name \*.o -o -name \*.pic_o -o \
+				-name \*.a -o -name \*.so | \
+				xargs rm > /dev/null 2>&1
+			rm -f compiler/mercury_compile profiler/mercury_profile
+		fi
 	else
-		GRADE=$BEST_GRADE_FOR_COMPILER
-		echo "using grade \`$GRADE' to compile the compiler
-	compiler and library will be rebuilt with new grade
-	installation may take a long time" 1>&6
-		find library compiler browser mdbcomp analysis \
-			profiler deep_profiler \
-			-name \*.c -o -name \*.c_date | \
-			xargs rm > /dev/null 2>&1
+		if test "$BOOTSTRAP_STAGE" = "1"; then
+			GRADE=$BEST_GRADE_FOR_COMPILER
+			find library compiler browser mdbcomp analysis \
+				profiler deep_profiler slice \
+				-name \*.c -o -name \*.c_date | \
+				xargs rm > /dev/null 2>&1
+		else
+			GRADE=$BEST_GRADE_FOR_COMPILER
+		fi
 	fi
 else
 	GRADE=$BEST_GRADE_FOR_COMPILER
-	echo "using grade \`$GRADE' to compile the compiler" 1>&6
 fi
+echo "using grade \`$GRADE' to compile the compiler" 1>&6
 
 
 #-----------------------------------------------------------------------------#
@@ -10222,12 +10222,12 @@
 
 fi
 #-----------------------------------------------------------------------------#
-if test "$BOOTSTRAP_MC" = ""; then
-	BOOTSTRAP_MC=mmc
-fi
-BOOTSTRAP_MC_COMPILER="$BOOTSTRAP_MC"
-BOOTSTRAP_MC_ARGS="$HAVE_BOXED_FLOATS --conf-low-tag-bits $LOW_TAG_BITS --bits-per-word $BITS_PER_WORD --bytes-per-word $BYTES_PER_WORD"
-BOOTSTRAP_MC="$BOOTSTRAP_MC_COMPILER $BOOTSTRAP_MC_ARGS"
+#if test "$BOOTSTRAP_MC" = ""; then
+#	BOOTSTRAP_MC=mmc
+#fi
+#BOOTSTRAP_MC_COMPILER="$BOOTSTRAP_MC"
+#BOOTSTRAP_MC_ARGS="$HAVE_BOXED_FLOATS --conf-low-tag-bits $LOW_TAG_BITS --bits-per-word $BITS_PER_WORD --bytes-per-word $BYTES_PER_WORD"
+#BOOTSTRAP_MC="$BOOTSTRAP_MC_COMPILER $BOOTSTRAP_MC_ARGS"
 
 
 
@@ -12260,6 +12260,13 @@
     rm -f confscratch $to_delete
 fi
 #-----------------------------------------------------------------------------#
+if test "$BOOTSTRAP_MC" = ""; then
+	BOOTSTRAP_MC=mmc
+fi
+BOOTSTRAP_MC_COMPILER="$BOOTSTRAP_MC"
+BOOTSTRAP_MC_ARGS="$HAVE_BOXED_FLOATS --conf-low-tag-bits $LOW_TAG_BITS --bits-per-word $BITS_PER_WORD --bytes-per-word $BYTES_PER_WORD"
+BOOTSTRAP_MC="$BOOTSTRAP_MC_COMPILER $BOOTSTRAP_MC_ARGS"
+#-----------------------------------------------------------------------------#
 
 echo "$as_me:$LINENO: checking for C shell executable" >&5
 echo $ECHO_N "checking for C shell executable... $ECHO_C" >&6