From: Alan Modra Date: Thu, 31 Mar 2005 00:48:19 +0000 (+0930) Subject: config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus. X-Git-Tag: releases/gcc-3.4.4~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d42e5141f7e8116f2240a03aa6ce14d8dfed9dd;p=thirdparty%2Fgcc.git 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: r97300 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fda239e5734..132529d12b77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2005-03-31 Alan Modra + + * 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 Alan Modra * doc/install.texi: Update binutils requirement for powerpc*-linux. @@ -5,13 +13,13 @@ 2005-03-25 John David Anglin PR target/15491 - * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs. + * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs. (vax_rtx_costs): Return false when passed unsupported rtx's. Handle FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE. Fix costs for POST_INC, PRE_DEC, NEG and NOT. 2005-03-23 Uros Bizjak - + * simplify-rtx.c (simplify_unary_operation) : Add missing break in code that deals with logicals on floats. @@ -93,7 +101,7 @@ 2005-03-10 Aldy Hernandez - * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section. + * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section. 2005-03-08 James E Wilson @@ -174,7 +182,7 @@ * doc/install.texi (Specific): Update link for Darwin-specific tool binary site. - + 2005-02-16 David Edelsohn PR target/19019 @@ -220,8 +228,8 @@ PR preprocessor/19077 * cppmacro.c (cpp_macro_definition): Move handling of whitespace - to PREV_WHITE conditional. Remove overloading of len - variable. + to PREV_WHITE conditional. Remove overloading of len + variable. 2005-02-16 Eric Botcazou @@ -234,10 +242,10 @@ 2005-02-11 John David Anglin - PR middle-end/19697 + PR middle-end/19697 2005-01-30 Roger Sayle - * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer - constant as the second operand and a register as the third. + * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer + constant as the second operand and a register as the third. 2005-02-11 Jakub Jelinek @@ -340,9 +348,9 @@ the fact that the PC will be off by 4. 2005-01-24 Richard Henderson - Aldy Hernandez + Aldy Hernandez - * regrename.c (note_sets): Handle subregs. + * regrename.c (note_sets): Handle subregs. 2005-01-24 Jakub Jelinek @@ -386,7 +394,7 @@ PR debug/16261 Backport from mainline: 2004-01-27 Devang Patel - + * dwarf2out.c: (remove_child_TAG): New function. (gen_subprogram_die): Do not remove all children dies while reusing declaration die for definition. Instead, selectively remove only @@ -421,7 +429,7 @@ 2005-01-15 Ralf Corsepius * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0. - * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS): + * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS): Remove little endian multilib variants. Add mips32 multilib variant. @@ -480,16 +488,16 @@ 2005-01-06 Richard Sandiford - PR rtl-opt/13299 - * loop.c (get_monotonic_increment, biased_biv_fits_mode_p, - biv_fits_mode_p, extension_within_bounds_p): New functions. - (check_ext_dependent_givs): Use them. + PR rtl-opt/13299 + * loop.c (get_monotonic_increment, biased_biv_fits_mode_p, + biv_fits_mode_p, extension_within_bounds_p): New functions. + (check_ext_dependent_givs): Use them. 2005-01-05 Richard Henderson - PR rtl-opt/10692 - * reload1.c (do_input_reload): Restrict the optimization deleteing - a previous output reload to RELOAD_FOR_INPUT. + PR rtl-opt/10692 + * reload1.c (do_input_reload): Restrict the optimization deleteing + a previous output reload to RELOAD_FOR_INPUT. 2005-01-06 Jakub Jelinek @@ -521,12 +529,12 @@ John David Anglin rtl-optimization/12863 - * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define. - * config/vax/vax.md (casesi): Emit a test-and-branch to make sure - that the case is in range, to make sure the casesi insn is always - in range and never falls through. - (casesi1): Add comment to explain why casesi never falls through. - Remove the unnamed special case casesi pattern. + * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define. + * config/vax/vax.md (casesi): Emit a test-and-branch to make sure + that the case is in range, to make sure the casesi insn is always + in range and never falls through. + (casesi1): Add comment to explain why casesi never falls through. + Remove the unnamed special case casesi pattern. 2004-12-27 John David Anglin @@ -574,7 +582,7 @@ 2004-12-23 Richard Henderson - PR c/18282 + PR c/18282 * c-decl.c (finish_enum): Retain precision acquired from an attribute. 2004-12-23 Alexandre Oliva @@ -602,7 +610,7 @@ in MMX registers. * config/i386/i386.h (VALID_SSE2_REG_MODE): Don't include VALID_MMX_REG_MODE. - * config/i386/i386.md (movv4sf_internal, movv4si_internal, + * config/i386/i386.md (movv4sf_internal, movv4si_internal, movv2di_internal, movv2si_internal, movv4hi_internal, movv2sf_internal, movv2df_internal, movv8hi_internal, movv16qi_internal, movti_internal): Add leading '*' to name. @@ -929,7 +937,7 @@ * c-ppoutput.c (pp_file_change): Remove now-redundant check of flag_no_output. - PR preprocessor/17610 + PR preprocessor/17610 * directives.c (do_include_common): Error out if an empty filename is given for #include (or #include_next or #import). PR preprocessor/17610 diff --git a/gcc/config.gcc b/gcc/config.gcc index fe101f1298f2..3d72382ead4f 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -244,6 +244,7 @@ esac # machines. tm_p_file= cpu_type=`echo ${target} | sed 's/-.*$//'` +cpu_is_64bit= case ${target} in alpha*-*-*) cpu_type=alpha @@ -300,6 +301,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 @@ -1691,11 +1697,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) 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 t-slibgcc-elf-ver t-linux rs6000/t-ppccomm rs6000/t-linux64" ;; powerpc64-*-gnu*) @@ -1769,8 +1774,20 @@ powerpc-*-linux*spe*) tmake_file="rs6000/t-fprules rs6000/t-ppcos t-slibgcc-elf-ver t-linux 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 t-slibgcc-elf-ver t-linux 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"