|
Lines 1-26
Link Here
|
| 1 |
--- ./gcc/config.gcc.orig Fri Oct 20 15:51:53 2006 |
1 |
--- ./gcc/config.gcc.orig 2005-04-25 04:47:59.000000000 +0000 |
| 2 |
+++ ./gcc/config.gcc Fri Oct 20 15:52:15 2006 |
2 |
+++ ./gcc/config.gcc 2011-01-04 11:06:36.000000000 +0000 |
| 3 |
@@ -244,6 +244,7 @@ |
3 |
@@ -406,6 +406,12 @@ |
| 4 |
# machines. |
|
|
| 5 |
tm_p_file= |
| 6 |
cpu_type=`echo ${target} | sed 's/-.*$//'` |
| 7 |
+cpu_is_64bit= |
| 8 |
case ${target} in |
| 9 |
alpha*-*-*) |
| 10 |
cpu_type=alpha |
| 11 |
@@ -300,6 +301,11 @@ |
| 12 |
cpu_type=rs6000 |
| 13 |
extra_headers="ppc-asm.h altivec.h spe.h" |
| 14 |
need_64bit_hwint=yes |
| 15 |
+ case x$with_cpu in |
| 16 |
+ xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345]|xrs64a) |
| 17 |
+ cpu_is_64bit=yes |
| 18 |
+ ;; |
| 19 |
+ esac |
| 20 |
;; |
| 21 |
rs6000*-*-*) |
| 22 |
need_64bit_hwint=yes |
| 23 |
@@ -400,6 +406,12 @@ |
| 24 |
tm_defines="${tm_defines} FBSD_MAJOR=5" ;; |
4 |
tm_defines="${tm_defines} FBSD_MAJOR=5" ;; |
| 25 |
*-*-freebsd6 | *-*-freebsd[6].*) |
5 |
*-*-freebsd6 | *-*-freebsd[6].*) |
| 26 |
tm_defines="${tm_defines} FBSD_MAJOR=6" ;; |
6 |
tm_defines="${tm_defines} FBSD_MAJOR=6" ;; |
|
Lines 33-299
Link Here
|
| 33 |
*) |
13 |
*) |
| 34 |
echo 'Please update *-*-freebsd* in gcc/config.gcc' |
14 |
echo 'Please update *-*-freebsd* in gcc/config.gcc' |
| 35 |
exit 1 |
15 |
exit 1 |
| 36 |
@@ -680,7 +692,7 @@ |
|
|
| 37 |
;; |
| 38 |
arm*-*-rtems*) |
| 39 |
tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h" |
| 40 |
- tmake_file="arm/t-arm-elf t-rtems" |
| 41 |
+ tmake_file="arm/t-arm-elf t-rtems arm/t-rtems" |
| 42 |
;; |
| 43 |
arm*-*-elf | ep9312-*-elf) |
| 44 |
tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" |
| 45 |
@@ -700,12 +712,16 @@ |
| 46 |
tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h kaos.h arm/kaos-arm.h" |
| 47 |
tmake_file=arm/t-arm-elf |
| 48 |
;; |
| 49 |
+avr-*-rtems*) |
| 50 |
+ tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h" |
| 51 |
+ tmake_file="avr/t-avr t-rtems avr/t-rtems" |
| 52 |
+ ;; |
| 53 |
avr-*-*) |
| 54 |
tm_file="avr/avr.h dbxelf.h" |
| 55 |
use_fixproto=yes |
| 56 |
;; |
| 57 |
c4x-*-rtems* | tic4x-*-rtems*) |
| 58 |
- tmake_file="c4x/t-c4x t-rtems" |
| 59 |
+ tmake_file="c4x/t-c4x t-rtems c4x/t-rtems" |
| 60 |
tm_file="c4x/c4x.h c4x/rtems.h rtems.h" |
| 61 |
c_target_objs="c4x-c.o" |
| 62 |
cxx_target_objs="c4x-c.o" |
| 63 |
@@ -1678,20 +1694,16 @@ |
| 64 |
pdp11-*-*) |
| 65 |
use_fixproto=yes |
| 66 |
;; |
| 67 |
-avr-*-*) |
| 68 |
- use_fixproto=yes |
| 69 |
- ;; |
| 70 |
# port not yet contributed |
| 71 |
#powerpc-*-openbsd*) |
| 72 |
# tmake_file="${tmake_file} rs6000/t-fprules " |
| 73 |
# extra_headers= |
| 74 |
# ;; |
| 75 |
powerpc64-*-linux*) |
| 76 |
- tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 77 |
- case x$with_cpu in |
| 78 |
- x|xpowerpc64|xdefault64) tm_file="${tm_file} rs6000/default64.h";; |
| 79 |
- esac |
| 80 |
- tm_file="${tm_file} rs6000/linux64.h" |
| 81 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 82 |
+ test x$with_cpu != x || cpu_is_64bit=yes |
| 83 |
+ test x$cpu_is_64bit != xyes || tm_file="${tm_file} rs6000/default64.h" |
| 84 |
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h" |
| 85 |
tmake_file="rs6000/t-fprules t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64" |
| 86 |
;; |
| 87 |
powerpc64-*-gnu*) |
| 88 |
@@ -1765,8 +1777,20 @@ |
| 89 |
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
| 90 |
;; |
| 91 |
powerpc-*-linux*) |
| 92 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" |
| 93 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" |
| 94 |
tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" |
| 95 |
+ case ${enable_targets}:${cpu_is_64bit} in |
| 96 |
+ *powerpc64* | all:* | *:yes) |
| 97 |
+ if test x$cpu_is_64bit = xyes; then |
| 98 |
+ tm_file="${tm_file} rs6000/default64.h" |
| 99 |
+ fi |
| 100 |
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h" |
| 101 |
+ tmake_file="$tmake_file rs6000/t-linux64" |
| 102 |
+ ;; |
| 103 |
+ *) |
| 104 |
+ tm_file="${tm_file} rs6000/linux.h" |
| 105 |
+ ;; |
| 106 |
+ esac |
| 107 |
;; |
| 108 |
powerpc-*-gnu-gnualtivec*) |
| 109 |
tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h" |
| 110 |
@@ -2007,7 +2031,7 @@ |
| 111 |
with_cpu=ultrasparc |
| 112 |
;; |
| 113 |
sparc-*-elf*) |
| 114 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h" |
| 115 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/elf.h" |
| 116 |
tmake_file="sparc/t-elf sparc/t-crtfm" |
| 117 |
extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
| 118 |
use_fixproto=yes |
| 119 |
@@ -2017,7 +2041,7 @@ |
| 120 |
tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm" |
| 121 |
;; |
| 122 |
sparc-*-rtems*) |
| 123 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h" |
| 124 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/elf.h sparc/rtemself.h rtems.h" |
| 125 |
tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" |
| 126 |
extra_parts="crti.o crtn.o crtbegin.o crtend.o" |
| 127 |
;; |
| 128 |
@@ -2106,13 +2130,13 @@ |
| 129 |
tmake_file=sparc/t-sparclite |
| 130 |
;; |
| 131 |
sparclite-*-elf*) |
| 132 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/liteelf.h" |
| 133 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/elf.h sparc/liteelf.h" |
| 134 |
tmake_file="sparc/t-sparclite sparc/t-crtfm" |
| 135 |
extra_parts="crtbegin.o crtend.o" |
| 136 |
use_fixproto=yes |
| 137 |
;; |
| 138 |
sparc86x-*-elf*) |
| 139 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/sp86x-elf.h" |
| 140 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/elf.h sparc/sp86x-elf.h" |
| 141 |
tmake_file="sparc/t-sp86x sparc/t-crtfm" |
| 142 |
extra_parts="crtbegin.o crtend.o" |
| 143 |
use_fixproto=yes |
| 144 |
@@ -2122,7 +2146,7 @@ |
| 145 |
use_fixproto=yes |
| 146 |
;; |
| 147 |
sparc64-*-elf*) |
| 148 |
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sp64-elf.h" |
| 149 |
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-gld.h sparc/sp64-elf.h" |
| 150 |
tmake_file="${tmake_file} sparc/t-crtfm" |
| 151 |
extra_parts="crtbegin.o crtend.o" |
| 152 |
use_fixproto=yes |
| 153 |
@@ -2398,24 +2422,24 @@ |
| 154 |
esac |
| 155 |
fi |
| 156 |
|
| 157 |
- # Similarly for --with-schedule. |
| 158 |
- if test x$with_schedule = x; then |
| 159 |
- case ${target} in |
| 160 |
- hppa1* | parisc1*) |
| 161 |
- # Override default PA8000 scheduling model. |
| 162 |
- with_schedule=7100LC |
| 163 |
- ;; |
| 164 |
- esac |
| 165 |
- fi |
| 166 |
+# Similarly for --with-schedule. |
| 167 |
+if test x$with_schedule = x; then |
| 168 |
+ case ${target} in |
| 169 |
+ hppa1* | parisc1*) |
| 170 |
+ # Override default PA8000 scheduling model. |
| 171 |
+ with_schedule=7100LC |
| 172 |
+ ;; |
| 173 |
+ esac |
| 174 |
+fi |
| 175 |
|
| 176 |
- # Validate and mark as valid any --with options supported |
| 177 |
- # by this target. In order to use a particular --with option |
| 178 |
- # you must list it in supported_defaults; validating the value |
| 179 |
- # is optional. This case statement should set nothing besides |
| 180 |
- # supported_defaults. |
| 181 |
+# Validate and mark as valid any --with options supported |
| 182 |
+# by this target. In order to use a particular --with option |
| 183 |
+# you must list it in supported_defaults; validating the value |
| 184 |
+# is optional. This case statement should set nothing besides |
| 185 |
+# supported_defaults. |
| 186 |
|
| 187 |
- supported_defaults= |
| 188 |
- case "${target}" in |
| 189 |
+supported_defaults= |
| 190 |
+case "${target}" in |
| 191 |
alpha*-*-*) |
| 192 |
supported_defaults="cpu tune" |
| 193 |
for which in cpu tune; do |
| 194 |
@@ -2569,8 +2593,7 @@ |
| 195 |
eval $with_which= |
| 196 |
;; |
| 197 |
"" | common \ |
| 198 |
- | power | power2 | power3 | power4 \ |
| 199 |
- | powerpc | powerpc64 \ |
| 200 |
+ | power | power[2345] | powerpc | powerpc64 \ |
| 201 |
| rios | rios1 | rios2 | rsc | rsc1 | rs64a \ |
| 202 |
| 401 | 403 | 405 | 405fp | 440 | 440fp | 505 \ |
| 203 |
| 601 | 602 | 603 | 603e | ec603e | 604 \ |
| 204 |
@@ -2655,11 +2678,11 @@ |
| 205 |
;; |
| 206 |
esac |
| 207 |
;; |
| 208 |
- esac |
| 209 |
+esac |
| 210 |
|
| 211 |
- # Set some miscellaneous flags for particular targets. |
| 212 |
- target_cpu_default2= |
| 213 |
- case ${target} in |
| 214 |
+# Set some miscellaneous flags for particular targets. |
| 215 |
+target_cpu_default2= |
| 216 |
+case ${target} in |
| 217 |
alpha*-*-*) |
| 218 |
if test x$gas = xyes |
| 219 |
then |
| 220 |
@@ -2771,44 +2794,45 @@ |
| 221 |
;; |
| 222 |
esac |
| 223 |
;; |
| 224 |
- esac |
| 225 |
+esac |
| 226 |
|
| 227 |
- t= |
| 228 |
- all_defaults="abi cpu arch tune schedule float mode" |
| 229 |
- for option in $all_defaults |
| 230 |
- do |
| 231 |
- eval "val=\$with_$option" |
| 232 |
- if test -n "$val"; then |
| 233 |
- case " $supported_defaults " in |
| 234 |
- *" $option "*) |
| 235 |
- ;; |
| 236 |
- *) |
| 237 |
- echo "This target does not support --with-$option." 2>&1 |
| 238 |
- exit 1 |
| 239 |
- ;; |
| 240 |
- esac |
| 241 |
+t= |
| 242 |
+all_defaults="abi cpu arch tune schedule float mode" |
| 243 |
+for option in $all_defaults |
| 244 |
+do |
| 245 |
+ eval "val=\$with_$option" |
| 246 |
+ if test -n "$val"; then |
| 247 |
+ case " $supported_defaults " in |
| 248 |
+ *" $option "*) |
| 249 |
+ ;; |
| 250 |
+ *) |
| 251 |
+ echo "This target does not support --with-$option." 2>&1 |
| 252 |
+ exit 1 |
| 253 |
+ ;; |
| 254 |
+ esac |
| 255 |
|
| 256 |
- if test "x$t" = x |
| 257 |
- then |
| 258 |
- t="{ \"$option\", \"$val\" }" |
| 259 |
- else |
| 260 |
- t="${t}, { \"$option\", \"$val\" }" |
| 261 |
- fi |
| 262 |
+ if test "x$t" = x |
| 263 |
+ then |
| 264 |
+ t="{ \"$option\", \"$val\" }" |
| 265 |
+ else |
| 266 |
+ t="${t}, { \"$option\", \"$val\" }" |
| 267 |
fi |
| 268 |
- done |
| 269 |
- if test "x$t" = x |
| 270 |
- then |
| 271 |
- configure_default_options="{ { NULL, NULL} }" |
| 272 |
- else |
| 273 |
- configure_default_options="{ ${t} }" |
| 274 |
fi |
| 275 |
+done |
| 276 |
|
| 277 |
- if test "$target_cpu_default2" != "" |
| 278 |
+if test "x$t" = x |
| 279 |
+then |
| 280 |
+ configure_default_options="{ { NULL, NULL} }" |
| 281 |
+else |
| 282 |
+ configure_default_options="{ ${t} }" |
| 283 |
+fi |
| 284 |
+ |
| 285 |
+if test "$target_cpu_default2" != "" |
| 286 |
+then |
| 287 |
+ if test "$target_cpu_default" != "" |
| 288 |
then |
| 289 |
- if test "$target_cpu_default" != "" |
| 290 |
- then |
| 291 |
- target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
| 292 |
- else |
| 293 |
- target_cpu_default=$target_cpu_default2 |
| 294 |
- fi |
| 295 |
+ target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" |
| 296 |
+ else |
| 297 |
+ target_cpu_default=$target_cpu_default2 |
| 298 |
fi |
| 299 |
+fi |