aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gcc.gnu.org>2005-03-31 09:16:28 +0930
committerAlan Modra <amodra@gcc.gnu.org>2005-03-31 09:16:28 +0930
commita8e04fe6ca41fa2280dfdf32b3deed9109d85179 (patch)
tree6c03297197199c8f04a0e16dfc869a329e7921f8 /gcc
parentfdfa76bdd915d0e9fa1ed725bc131562d7c263f9 (diff)
downloadgcc-a8e04fe6ca41fa2280dfdf32b3deed9109d85179.zip
gcc-a8e04fe6ca41fa2280dfdf32b3deed9109d85179.tar.gz
gcc-a8e04fe6ca41fa2280dfdf32b3deed9109d85179.tar.bz2
config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
* config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus. (powerpc64-*-linux*): Use it. Rearrange tm_file assignment. (powerpc-*-linux*): Build a biarch compiler when --enable-targets is given with "powerpc64*" or "all", or when --with-cpu chooses a 64-bit cpu. From-SVN: r97290
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog28
-rw-r--r--gcc/config.gcc30
2 files changed, 41 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aef2715..d79c6ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2005-03-31 Alan Modra <amodra@bigpond.net.au>
+
+ * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
+ (powerpc64-*-linux*): Use it. Rearrange tm_file assignment.
+ (powerpc-*-linux*): Build a biarch compiler when --enable-targets
+ is given with "powerpc64*" or "all", or when --with-cpu chooses
+ a 64-bit cpu.
+
2005-03-30 James E. Wilson <wilson@specifixinc.com>
PR debug/20268
@@ -88,7 +96,7 @@
2nd argument to match int.
* libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
2nd argument type to int.
- * libgcc2.c: Change prototype of __powi* functions to use
+ * libgcc2.c: Change prototype of __powi* functions to use
int.
2005-03-30 Dale Johannesen <dalej@apple.com>
@@ -141,7 +149,7 @@
2005-03-30 Sebastian Pop <pop@cri.ensmp.fr>
- * tree-scalar-evolution.c (instantiate_parameters_1): Return
+ * tree-scalar-evolution.c (instantiate_parameters_1): Return
as soon as a chrec_dont_know is detected.
2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
@@ -411,7 +419,7 @@
(pass_tree_profile): Reference it.
* value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
tree.h, gcov-io.h.
- (insn_divmod_values_to_profile): Rename to
+ (insn_divmod_values_to_profile): Rename to
rtl_divmod_values_to_profile. Adjust.
(insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
(insn_prefetch_values_to_profile): Adjust.
@@ -419,7 +427,7 @@
(gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
(gen_mod_pow2): Rename to rtl_mod_pow2.
(gen_mod_subtract): Rename to rtl_mod_subtract.
- (divmod_fixed_value_transform): Rename to
+ (divmod_fixed_value_transform): Rename to
rtl_divmod_fixed_value_transform.
(mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
(mod_subtract_transform): Rename to rtl_mod_subtract_transform.
@@ -523,7 +531,7 @@
(stfiwx): New.
* config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
(EXTRA_MEMORY_CONSTRAINT): Likewise.
- * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
+ * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
* config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
2005-03-25 Kazu Hirata <kazu@cs.umass.edu>
@@ -636,7 +644,7 @@
not optimizing.
2005-03-23 Dorit Naishlos <dorit@il.ib.com>
-
+
PR tree-optimization/20501
* tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
reporting that peeling for alignment is applied moved to...
@@ -756,7 +764,7 @@
* dwarf2out.c (dwarf2_debug_hooks): Ditto.
* sdbout.c (sdb_debug_hooks): Ditto.
* vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
-
+
2005-03-22 Mark Mitchell <mark@codesourcery.com>
* doc/extend.texi: Deprecate C++ min/max operators.
@@ -906,7 +914,7 @@
* config/fr30/fr30.opt: New file.
2005-03-18 Daniel Berlin <dberlin@dberlin.org>
-
+
Fix PR tree-optimization/20542
* tree-flow-inline.h (overlap_subvar): Move to here.
@@ -915,7 +923,7 @@
* tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
* tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
for variables with subvars.
-
+
2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
PR middle-end/20177
@@ -3904,7 +3912,7 @@
not including (reg). Do not check for reg being CRIS_PC_REGNUM.
(EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
* config/cris/cris.md: Tweak comments referring to Q.
- ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
+ ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 2bfd9e7..c4d5d3f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -231,6 +231,7 @@ esac
# machines.
tm_p_file=
cpu_type=`echo ${target} | sed 's/-.*$//'`
+cpu_is_64bit=
case ${target} in
alpha*-*-*)
cpu_type=alpha
@@ -287,6 +288,11 @@ powerpc*-*-*)
cpu_type=rs6000
extra_headers="ppc-asm.h altivec.h spe.h"
need_64bit_hwint=yes
+ case x$with_cpu in
+ xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345]|xrs64a)
+ cpu_is_64bit=yes
+ ;;
+ esac
;;
rs6000*-*-*)
need_64bit_hwint=yes
@@ -1536,12 +1542,10 @@ avr-*-*)
# extra_headers=
# ;;
powerpc64-*-linux*)
- tm_file="rs6000/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
- case x$with_cpu in
- x|xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345]|xrs64a)
- tm_file="${tm_file} rs6000/default64.h";;
- esac
- tm_file="${tm_file} rs6000/linux64.h"
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
+ test x$with_cpu != x || cpu_is_64bit=yes
+ test x$cpu_is_64bit != xyes || tm_file="${tm_file} rs6000/default64.h"
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h"
tmake_file="rs6000/t-fprules ${tmake_file} rs6000/t-ppccomm rs6000/t-linux64"
;;
powerpc64-*-gnu*)
@@ -1620,8 +1624,20 @@ powerpc-*-linux*spe*)
tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
;;
powerpc-*-linux*)
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
+ case ${enable_targets}:${cpu_is_64bit} in
+ *powerpc64* | all:* | *:yes)
+ if test x$cpu_is_64bit = xyes; then
+ tm_file="${tm_file} rs6000/default64.h"
+ fi
+ tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h"
+ tmake_file="$tmake_file rs6000/t-linux64"
+ ;;
+ *)
+ tm_file="${tm_file} rs6000/linux.h"
+ ;;
+ esac
;;
powerpc-*-gnu-gnualtivec*)
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"