aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-12-15re PR libfortran/30200 ([4.1 only] write(*,myfmt="(1X,a,'xyz')") "A" prints ↵Jerry DeLisle2-1/+6
Az' instead of Axyz) 2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/30200 * trans-io.c (build_dt): Move post block for format_expr to end. From-SVN: r119940
2006-12-15re PR tree-optimization/30140 (inliner produces invalid gimple with promoted ↵Andrew Pinski2-1/+8
types) 2006-12-15 Andrew Pinski <pinski@gmail.com> PR tree-opt/30140 * tree-inline.c (setup_one_parameter): Gimplify the statement if the variable is not a gimple register variable. From-SVN: r119883
2006-12-15invoke.texi (mstringop-strategy): Add missing "byte_loop" value.Uros Bizjak2-2/+6
* invoke.texi (mstringop-strategy): Add missing "byte_loop" value. From-SVN: r119877
2006-12-15Daily bump.GCC Administrator1-1/+1
From-SVN: r119874
2006-12-14re PR tree-optimization/30194 (alias set partitioning dependent on SFT ↵Diego Novillo2-1/+11
DECL_UIDs) PR 30194 * gcc.dg/pr19633-1.c: Increase threshold for partitioning temporarily. From-SVN: r119867
2006-12-14Make-lang.in (fortran/options.o): Add $(PARAMS_H) dependency.Richard Guenther3-1/+13
2006-12-14 Richard Guenther <rguenther@suse.de> Diego Novillo <dnovillo@redhat.com> * Make-lang.in (fortran/options.o): Add $(PARAMS_H) dependency. * options.c (params.h): Include. (gfc_post_options): Set MAX_ALIASED_VOPS to 50. Co-Authored-By: Diego Novillo <dnovillo@redhat.com> From-SVN: r119866
2006-12-14tree-flow.h (struct stmt_ann_d): Move bitfield references_memory to proper ↵Jan Hubicka2-4/+9
place. * tree-flow.h (struct stmt_ann_d): Move bitfield references_memory to proper place. From-SVN: r119863
2006-12-14target-supports.exp (check_weak_available): Use istarget "hppa*-*-hpux10*" ↵John David Anglin2-3/+8
instead of regexp. * lib/target-supports.exp (check_weak_available): Use istarget "hppa*-*-hpux10*" instead of regexp. (check_cxa_atexit_available): Likewise. From-SVN: r119861
2006-12-14re PR middle-end/30197 (cexp ( __complex__ ( 0, x ) ) can be folded to cexpi ↵Richard Guenther6-3/+114
(x)) 2006-12-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/30197 * builtins.c (fold_builtin_cexp): New function to fold cexp to cexpi and exp parts. * tree-ssa-pre.c (try_combine_conversion): Also handle REALPART_EXPR and IMAGPART_EXPR. * gcc.c-torture/execute/complex-1.c: Fix function name. * gcc.dg/builtins-61.c: New testcase. From-SVN: r119860
2006-12-14re PR middle-end/30172 (Operations with partly constant complex values not ↵Richard Guenther4-0/+84
folded) 2006-12-14 Richard Guenther <rguenther@suse.de> PR middle-end/30172 * fold-const.c (fold_binary): Fold __complex__ ( x, 0 ) + __complex__ ( 0, y ) to __complex__ ( x, y ). Fold __complex__ (x, y) * +-I to __complex__ (-+y, +-x). * gcc.dg/pr30172-1.c: New testcase. From-SVN: r119859
2006-12-14re PR middle-end/30198 (__real / __imag cexpi (x) can be folded to cos (x) / ↵Richard Guenther4-0/+53
sin (x)) 2006-12-14 Richard Guenther <rguenther@suse.de> PR tree-optimization/30198 * fold-const.c (fold_unary): Fold REALPART_EXPR of cexpi to cos. Fold IMAGPART_EXPR of cexpi to sin. * gcc.dg/builtins-60.c: New testcase. From-SVN: r119858
2006-12-14spu.c (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Defined.Dorit Nuzman6-2/+110
* spu.c (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Defined. (spu_init_builtins): Mark the SPU_MASK_FOR_LOAD builtin decl as read only. (spu_expand_builtin_1): Handle the SPU_MASK_FOR_LOAD builtin. (spu_builtin_mask_for_load): New. * spu-builtins.def (SPU_MASK_FOR_LOAD): Define new builtin. * spu.md (UNSPEC_SPU_REALIGN_LOAD, UNSPEC_SPU_MASK_FOR_LOAD):New. (vec_realign_load_<mode>, spu_lvsr): New. Co-Authored-By: Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> From-SVN: r119857
2006-12-14configure.ac: Add TARGET for x86_64-*-darwin*.Andreas Tobler10-77/+509
2006-12-14 Andreas Tobler <a.tobler@schweiz.org> * configure.ac: Add TARGET for x86_64-*-darwin*. * Makefile.am (nodist_libffi_la_SOURCES): Add rules for 64-bit sources for X86_DARWIN. * src/x86/ffitarget.h: Set trampoline size for x86_64-*-darwin*. * src/x86/darwin64.S: New file for x86_64-*-darwin* support. * configure: Regenerate. * Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * testsuite/libffi.special/unwindtest_ffi_call.cc: New test case for ffi_call only. From-SVN: r119856
2006-12-14re PR c++/19564 (-Wparentheses does not work with the C++ front-end)Ian Lance Taylor36-141/+1633
PR c++/19564 PR c++/19756 gcc/: * c-typeck.c (parser_build_binary_op): Move parentheses warnings to warn_about_parentheses in c-common.c. * c-common.c (warn_about_parentheses): New function. * c-common.h (warn_about_parentheses): Declare. * doc/invoke.texi (Warning Options): Update -Wparentheses description. gcc/cp/: * parser.c (cp_parser_expression_stack_entry): Add field lhs_type. (cp_parser_binary_expression): Track tree code of left hand side of expression. Use it when calling build_x_binary_op. (cp_parser_selection_statement): Add if_p parameter. Change all callers. Warn about ambiguous else. (cp_parser_statement): Add if_p parameter. Change all callers. (cp_parser_implicitly_scoped_statement): Likewise. * typeck.c (build_x_binary_op): Add parameters arg1_code and arg2_code. Change all callers. Call warn_about_parentheses. * cp-tree.h (build_x_binary_op): Update declaration. gcc/testsuite/: * g++.dg/warn/Wparentheses-5.C: New test. * g++.dg/warn/Wparentheses-6.C: New test. * g++.dg/warn/Wparentheses-7.C: New test. * g++.dg/warn/Wparentheses-8.C: New test. * g++.dg/warn/Wparentheses-9.C: New test. * g++.dg/warn/Wparentheses-10.C: New test. * g++.dg/warn/Wparentheses-11.C: New test. * g++.dg/warn/Wparentheses-12.C: New test. * g++.dg/warn/Wparentheses-13.C: New test. * g++.dg/warn/Wparentheses-14.C: New test. * g++.dg/warn/Wparentheses-15.C: New test. * g++.dg/warn/Wparentheses-16.C: New test. * g++.dg/warn/Wparentheses-17.C: New test. * g++.dg/warn/Wparentheses-18.C: New test. * g++.dg/warn/Wparentheses-19.C: New test. * g++.dg/warn/Wparentheses-20.C: New test. * g++.dg/warn/Wparentheses-21.C: New test. libstdc++-v3/: * include/bits/locale_facets.tcc (num_get<>::_M_extract_float): Add parentheses around && within || to avoid warning. (num_get<>::_M_extract_int): Likewise. (money_get<>::_M_extract): Likewise. (num_get<>::do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&)): Add parentheses around & within | to avoid warning. (num_put<>::do_put(iter_type, ios_base&, char_type, const void*)): Likewise. * include/bits/streambuf_iterator.h (istreambuf_iterator::equal): Add parentheses around && within || to avoid warning. * libsupc++/tinfo.cc (__do_dyncast): Likewise. * src/locale.cc (locale::_S_normalize_category): Likewise. * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_unique): Add braces to avoid ambiguous else warning. * src/strstream.cc (strstreambuf::_M_free): Likewise. * src/tree.cc (_Rb_tree_rebalance_for_erase): Likewise. From-SVN: r119855
2006-12-14tree-ssa-loop-ivopts.c: Include tree-affine.h.Zdenek Dvorak7-614/+623
* tree-ssa-loop-ivopts.c: Include tree-affine.h. (divide): Removed. (constant_multiple_of): Fix order of operators for division. (aff_combination_const, aff_combination_elt, aff_combination_scale, aff_combination_add_elt, aff_combination_add, aff_combination_convert, tree_to_aff_combination, add_elt_to_tree, unshare_aff_combination, aff_combination_to_tree): Moved to tree-affine.c and made to work with double_int coefficients. (get_computation_aff, get_computation_at): Work with double_int coefficients. (get_computation_cost_at): Do not use divide. (rewrite_use_nonlinear_expr, rewrite_use_address, rewrite_use_compare): Assert that expressing the computation did not fail. * tree-ssa-address.c: Include tree-affine.h. (add_to_parts, most_expensive_mult_to_index, addr_to_parts, create_mem_ref): Work with double_int coefficients. * tree-affine.c: New file. * tree-affine.h: New file. * tree-flow.h (struct affine_tree_combination): Removed. * Makefile.in (tree-affine.o): Add. (tree-ssa-address.o, tree-ssa-loop-ivopts.o): Add tree-affine.h dependency. From-SVN: r119854
2006-12-14Daily bump.GCC Administrator1-1/+1
From-SVN: r119852
2006-12-14MAINTAINERS: Add myself as darwin maintainer.Eric Christopher2-18/+23
2006-12-13 Eric Christopher <echristo@apple.com> * MAINTAINERS: Add myself as darwin maintainer. From-SVN: r119851
2006-12-13aclocal.m4: Regenerate with aclocal -I ..Andreas Tobler2-6377/+6
2006-12-13 Andreas Tobler <a.tobler@schweiz.org> * aclocal.m4: Regenerate with aclocal -I .. as written in the Makefile.am. From-SVN: r119845
2006-12-13re PR middle-end/30191 (GCC error: in eliminate_regs_in_insn, at reload1.c:3126)Peter Bergner3-12/+33
PR middle-end/30191 Revert: * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and the offset == 0 "then" clauses. * config/rs6000/predicates.md (gpc_reg_operand): Check for reload_in_progress. From-SVN: r119844
2006-12-13re PR testsuite/30157 (cxa_atexit check doesn't work)John David Anglin2-0/+10
PR testsuite/30157 * lib/target-supports.exp (check_cxa_atexit_available): Return false for target "hppa.*hpux10". From-SVN: r119842
2006-12-13i386.h (FIRST_PSEUDO_REGISTER): Define to 53.Uros Bizjak5-40/+60
* config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 53. (FIXED_REGISTERS, CALL_USED_REGISTERS): Remove dir register. (REG_ALLOC_ORDER): Remove one element due to removal of dir register. (FRAME_POINTER_REGNUM): Update register number to 20. (REG_CLASS_CONTENTS): Update contents due to removed dir register. (HI_REGISTER_NAMES): Remove "dirflag". * config/i386/i386.c (regclass_map): Remove dirflag entry. (dbx_register_map, dbx64_register_map, svr4_dbx_register_map): Remove "dir" entry. (ix86_md_asm_clobbers): Remove "dirflag" default asm clobber. * config/i386/i386.md (R10_REG, R11_REG): Renumber. (sse_prologue_save, *sse_prologue_save_insn): Renumber hardcoded SSE register numbers. * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber hardcoded MMX register numbers. From-SVN: r119839
2006-12-13arm.c (arm_output_fldmx): Output FLDMD instead of FLDMX.Mark Shinwell7-53/+232
gcc/ * config/arm/arm.c (arm_output_fldmx): Output FLDMD instead of FLDMX. Rename function to... (vfp_output_fldmd): ...this. (vfp_output_fstmx): Output FSTMD instead of FSTMX. Rename function to... (vfp_output_fstmd): ...this. (vfp_emit_fstmx): Don't leave space in the frame layout for the FSTMX format word. Rename function to... (vfp_emit_fstmd): ...this. (arm_get_vfp_saved_size): Don't add in space for the FSTMX format word. (arm_output_epilogue): Adjust comment to reflect use of FSTMD. (arm_unwind_emit_sequence): Don't compensate for the FSTMX format word. Also emit "vsave" assembler directives in such cases rather than "save". * config/arm/libunwind.S (gnu_Unwind_Restore_VFP, gnu_Unwind_Save_VFP): Adjust comments. (gnu_Unwind_Restore_VFP_D, gnu_Unwind_Save_VFP_D): New functions for saving and restoring using FSTMD and FLDMD rather than FSTMX and FLDMX. (gnu_Unwind_Restore_VFP_D_16_to_31, gnu_Unwind_Restore_VFP_D_16_to_31): New functions for saving and restoring the VFPv3 registers 16 .. 31. * config/arm/pr-support.c (gnu_unwind_execute): Add conditional compilation case to correctly handle unwind opcode 0xc8 when using VFP. * config/arm/unwind-arm.c (struct vfpv3_regs): New. (DEMAND_SAVE_VFP_D, DEMAND_SAVE_VFP_V3): New flags. (__gnu_Unwind_Save_VFP_D, __gnu_Unwind_Restore_VFP_D, __gnu_Unwind_Save_VFP_D_16_to_31, __gnu_Unwind_Restore_VFP_D_16_to_31): Declare. (restore_non_core_regs): Restore registers using FLDMD rather than FLDMX if required. Also handle restoration of VFPv3 registers. (_Unwind_VRS_Pop): Handle saving and restoring of registers using FSTMD and FLDMD if required; also handle VFPv3 registers 16 .. 31, including cases where the caller specifies a range of registers that overlaps the d15/d16 boundary. From-SVN: r119838
2006-12-13[multiple changes]Jakub Jelinek11-0/+380
2006-12-13 Jakub Jelinek <jakub@redhat.com> * g++.dg/debug/vartrack1.C: New test. * g++.dg/opt/ifcvt1.C: New test. * gcc.dg/tls/opt-13.c: New test. * gcc.dg/20060425-2.c: New test. * g++.dg/opt/pr15054-2.C: New test. * gcc.c-torture/execute/20060420-1.c: New test. * gcc.c-torture/execute/20060412-1.c: New test. * objc/compile/20060406-1.m: New test. 2006-12-08 Alexandre Oliva <aoliva@redhat.com> * g++.dg/template/array17.C: New test. 2006-02-25 Alexandre Oliva <aoliva@redhat.com> * gcc.target/powerpc/altivec-23.c: New test. From-SVN: r119837
2006-12-13Fix PR attribution to last change.Diego Novillo1-0/+1
From-SVN: r119836
2006-12-13tree-ssa-operands.h (SSA_OPERAND_MEMORY_SIZE): Add space to accomodate 511 ↵Diego Novillo2-1/+6
operands. * tree-ssa-operands.h (SSA_OPERAND_MEMORY_SIZE): Add space to accomodate 511 operands. From-SVN: r119835
2006-12-13builtins.c (expand_builtin_cexpi): Fix typo.Richard Guenther2-1/+5
2006-12-13 Richard Guenther <rguenther@suse.de> * builtins.c (expand_builtin_cexpi): Fix typo. From-SVN: r119834
2006-12-13PR c++27316Lee Millward3-0/+29
PR c++27316 * g++.dg/inherit/error3.C: New test. PR c++/28740 * g++.dg/inherit/error4.C: New test. From-SVN: r119830
2006-12-13Makefile.in: Add dependencies.Jan Hubicka11-138/+449
* Makefile.in: Add dependencies. * tree-pretty-print.c: Include value-prof.h (dump_generic_bb_buff): Dump histograms * value-prof.c: Include pointer-set.h (gimple_alloc_histogram_value, histogram_hash, histogram_eq, set_histogram_value, gimple_histogram_value, gimple_add_histogram_value, gimple_remove_histogram_value, gimple_histogram_value_of_type, dump_histogram_value, dump_histograms_for_stmt, gimple_remove_stmt_histograms, gimple_duplicate_stmt_histograms, visit_hist, verify_histograms): New functions. (tree_value_profile_transformations): Update for new histogram API. (tree_divmod_fixed_value): Update for new histogram API. (tree_divmod_fixed_value_transform): Update for new histogram API. (tree_mod_pow2): Update for new histogram API. (tree_mod_pow2_value_transform): Update for new histogram API. (tree_mod_subtract): Update for new histogram API. (tree_mod_subtract_transform): Update for new histogram API. (tree_stringops_transform): Update for new histogram API. (tree_divmod_values_to_profile): Update for new histogram API. (tree_stringops_values_to_profile): Update for new histogram API. (tree_find_values_to_profile): Update for new histogram API. * value-prof.h (gimple_histogram_value): Declare. (gimple_histogram_value_of_type): Declare. (gimple_add_histogram_value): Declare. (gimple_remove_histogram_value): Declare. (dump_histograms_for_stmt): Declare. (gimple_remove_histogram_value): Declare. (gimple_remove_stmt_histograms): Declare. (gimple_duplicate_stmt_histograms): Declare. (verify_histograms): Declare. * function.h (struct funrction): Add value_histograms hash. (VALUE_HISTOGRAMS): New macro. * profile.c (compute_value_histograms): update for new API. * tree-inline.c: Include value-prof.h (copy_bb): Update histograms. * tree-flow.h (struct stmt_ann_d): Do not contain pointer to histograms; reorder to get smaller memory layout. * tree-cfg.c: Include value-prof.h (bsi_remove): Update histograms. (bsi_replace): Update histograms. (verify_stmts): Call histogram verifier. (tree_duplicate_bb): Update histograms. (move_block_to_fn): Update histograms. From-SVN: r119829
2006-12-13ipa-inline.c (cgraph_flatten_node): Replace leafify with flatten.Richard Guenther2-2/+8
2006-12-13 Richard Guenther <rguenther@suse.de> * ipa-inline.c (cgraph_flatten_node): Replace leafify with flatten. (cgraph_decide_inlining): Likewise. From-SVN: r119827
2006-12-13re PR tree-optimization/17687 (sincos tree representation causes extra ↵Richard Guenther6-4/+172
addressable vars) 2006-12-13 Richard Guenther <rguenther@suse.de> PR tree-optimization/17687 * builtins.def (BUILT_IN_CEXPI, BUILT_IN_CEXPIF, BUILT_IN_CEXPIL): New builtins for imaginary argument cexp. * builtin-types.def (BT_FN_COMPLEX_FLOAT_FLOAT, BT_FN_COMPLEX_DOUBLE_DOUBLE, BT_FN_COMPLEX_LONGDOUBLE_LONGDOUBLE): New required builtin types. * builtins.c (expand_builtin_cexpi): Declare. (mathfn_built_in): Handle BUILT_IN_CEXPI. (expand_builtin_cexpi): New static helper. (expand_builtin): Call it. (do_mpfr_sincos): Adjust for CEXPI evaluation. (fold_builtin_sincos): New function to fold sincos to cepxi. * gcc.dg/builtins-59.c: New testcase. From-SVN: r119824
2006-12-13re PR fortran/30115 (allocate() interface pessimizes aliasing)Richard Guenther6-98/+108
2006-12-13 Richard Guenther <rguenther@suse.de> PR fortran/30115 * runtime/memory.c (allocate_size): Change interface to void *()(size_t, GFC_INTEGER_4 *). (allocate): Likewise. (allocate64): Likewise. (allocate_array): Change interface to void *()(void *, size_t, GFC_INTEGER_4 *). (allocate64_array): Likewise. (deallocate): Change interface to void ()(void *, GFC_INTEGER_4 *). * trans-array.c (gfc_array_allocate): Adjust for changed library interface. (gfc_array_deallocate): Likewise. (gfc_trans_dealloc_allocated): Likewise. * trans-stmt.c (gfc_trans_allocate): Likewise. (gfc_trans_deallocate): Likewise. * trans-decl.c (gfc_build_builtin_function_decls): Adjust function declarations to match the library changes. Mark allocation functions with DECL_IS_MALLOC. From-SVN: r119822
2006-12-13ipa-reference.c (scan_for_static_refs): Also scan tcc_comparison class trees.Richard Guenther2-0/+6
2006-12-13 Richard Guenther <rguenther@suse.de> * ipa-reference.c (scan_for_static_refs): Also scan tcc_comparison class trees. From-SVN: r119821
2006-12-13mips-tdump.c: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.Geoffrey Keating23-42/+72
* mips-tdump.c: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE. * mips-tfile.c: Likewise. * gcc.c: Likewise. * configure.ac: Likewise. * cppdefault.c: Likewise. * Makefile.in: Likewise. * config/alpha/osf.h: Likewise. * config/i386/cygwin.h: Likewise. * config/i386/beos-elf.h: Likewise. * config/i386/nto.h: Likewise. * config/fr30/fr30.h: Likewise. * config/svr4.h: Likewise. * config/rs6000/aix.h: Likewise. * config/rs6000/sysv4.h: Likewise. * config/pa/pa64-hpux.h: Likewise. * config/pa/pa-hpux10.h: Likewise. * config/pa/pa-hpux11.h: Likewise. * collect2.c: Likewise. * configure: Regenerate. From-SVN: r119820
2006-12-13mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before define.David Daney2-0/+6
* config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before define. From-SVN: r119819
2006-12-12tree-vect-transform.c (vect_permute_load_chain): Set DECL_GIMPLE_REG_P to ↵Andrew Pinski2-0/+8
true for the vect_perm_* temp variables. 2006-12-12 Andrew Pinski <pinskia@gmail.com> * tree-vect-transform.c (vect_permute_load_chain): Set DECL_GIMPLE_REG_P to true for the vect_perm_* temp variables. From-SVN: r119818
2006-12-13spu.h (C_COMMON_OVERRIDE_OPTIONS): Define.Ben Elliston7-3/+32
* config/spu/spu.h (C_COMMON_OVERRIDE_OPTIONS): Define. (REGISTER_TARGET_PRAGMAS): Don't zero warn_main flag. * config/spu/spu-protos.h (spu_c_common_override_options): Declare. * config/spu/spu-c.c (spu_c_common_override_options): New. * config/spu/spu.c (spu_override_options): Whitespace fix. testsuite/ * gcc.target/spu/Wmain.c: New test. From-SVN: r119817
2006-12-13thunk3.C: Use .weak_definition on darwin.Josh Conner4-4/+14
2006-12-12 Josh Conner <jconner@apple.com> * g++.dg/abi/thunk3.C: Use .weak_definition on darwin. * g++.dg/abi/thunk4.C: Likewise. * g++.dg/abi/rtti3.C: Likewise. From-SVN: r119815
2006-12-13Daily bump.GCC Administrator1-1/+1
From-SVN: r119812
2006-12-12spu.c (cpat_info): Fix an incorrectly identified case.Trevor Smigiel7-1/+261
* config/spu/spu.c (cpat_info): Fix an incorrectly identified case. * gcc.target/spu/cpat-1.c: New test. * gcc.target/spu/cpat-2.c: New test. * gcc.target/spu/cpat-3.c: New test. * gcc.target/spu/cpat-4.c: New test. From-SVN: r119807
2006-12-12tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP actually takes an ↵Geoffrey Keating2-1/+6
unsigned HOST_WIDE_INT for its... * doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP actually takes an unsigned HOST_WIDE_INT for its second parameter. From-SVN: r119806
2006-12-13spu.c (TARGET_ENCODE_SECTION_INFO): Define.Ulrich Weigand3-0/+29
* config/spu/spu.c (TARGET_ENCODE_SECTION_INFO): Define. (spu_encode_section_info): New. * config/spu/spu.h (ALIGNED_SYMBOL_REF_P): Adjust. (SYMBOL_FLAG_ALIGN1): New. From-SVN: r119803
2006-12-12re PR tree-optimization/28624 (latent segfault in remove_phi_node)Andrew Pinski2-1/+15
2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/28624 * tree-ssa-dom.c (eliminate_degenerate_phis): Use a temporary bitmap for EXECUTE_IF_SET_IN_BITMAP. From-SVN: r119802
2006-12-12re PR middle-end/28436 (accessing an element via a "pointer" on a vector ↵Andrew Pinski20-35/+193
does not cause vec_extract to be used) 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/28436 * tree.h (DECL_COMPLEX_GIMPLE_REG_P): Rename to ... (DECL_GIMPLE_REG_P): This. * fold-const.c (fold_indirect_ref_1): Fold *(foo *)&vectorfoo into using BIT_FIELD_REF. * omp-low.c (omp_copy_decl_2): Use the renamed DECL_GIMPLE_REG_P. * tree-gimple.c (is_gimple_reg): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. * expr.c (get_inner_reference): Set the mode for BIT_FIELD_REF with vector types. * tree-flow-inline.h (var_can_have_subvars): Use the renamed DECL_GIMPLE_REG_P. * gimplify.c (internal_get_tmp_var): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. (gimplify_bind_expr): Likewise. (gimplify_function_tree): Likewise. * expmed.c: Include target.h. (extract_bit_field): For vector mode, try find a better mode first. If that fails use gen_lowpart (for vectors only). * tree-dfa.c (make_rename_temp): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. * tree-ssa-pre.c (create_expressions_by_pieces): Likewise. (insert_into_preds_of_block): Likewise. (insert_fake_stores): Create gimple register store_tmps for vector types. * tree-sra.c (sra_elt): New field, is_vector_lhs. (sra_walk_expr <case BIT_FIELD_REF>): For vector types that are the left hand side, set the element's is_vector_lhs to true. (instantiate_element): For vector types which were on the left hand size, set DECL_GIMPLE_REG_P to false. * tree-nested.c (create_tmp_var_for): Use the renamed DECL_GIMPLE_REG_P. * tree-inline.c (declare_return_variable): Use the renamed DECL_GIMPLE_REG_P and check for VECTOR_TYPE. (copy_decl_to_var): Use the renamed DECL_GIMPLE_REG_P. (copy_result_decl_to_var): Likewise. * tree-vect-transform.c (vect_get_new_vect_var): For vector types, create a gimple register variable. (vect_permute_store_chain): Set DECL_GIMPLE_REG_P to true for the vect_inter_* temp variables. * Makefile.in (expmed.o): Update dependencies. 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/28436 * gcc.c-torture/compile/vector-1.c: New test. * gcc.c-torture/compile/vector-2.c: New test. * gcc.c-torture/compile/vector-3.c: New test. From-SVN: r119801
2006-12-12reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and the offset ↵Peter Bergner3-24/+19
== 0 "then" clauses. * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and the offset == 0 "then" clauses. * config/rs6000/predicates.md (gpc_reg_operand): Check for reload_in_progress. From-SVN: r119800
2006-12-12trans-expr.c (gfc_conv_substring): Check for empty substring.Tobias Schlüter11-18/+75
fortran/ * trans-expr.c (gfc_conv_substring): Check for empty substring. testsuite/ * lib/fortran-torture.exp: Update copyright years. Remove obsolete comment. Test -ftree-vectorize where it makes sense. * lib/gfortran-dg.exp: Update copyright years. Use settings from fortran-torture.exp. * gfortran.dg/char_transpose_1.f90, gfortran.dg/char_spread_1.f90, gfortran.dg/g77/dnrm2.f, gfortran.dg/dependent_decls_1.f90: Fixout-of-bound errors. * gfortran.dg/enum_10.f90, gfortran.dg/mixed_io_1.f90: Add '-w' to dg-options. From-SVN: r119797
2006-12-12tree-pass.h: remove redundant pass_partition_blocks declaration.Marcin Dalecki2-2/+2
2006-12-12 Marcin Dalecki <martin@dalecki.de> * gcc/tree-pass.h: remove redundant pass_partition_blocks declaration. From-SVN: r119796
2006-12-12gcc-dg.exp (${tool}_load): Fix invocation of saved_${tool}_load.Richard Sandiford2-1/+6
gcc/testsuite/ * lib/gcc-dg.exp (${tool}_load): Fix invocation of saved_${tool}_load. From-SVN: r119795
2006-12-12passes.texi: remove docs about "redundant PHI removal".Marcin Dalecki3-9/+5
2006-12-12 Marcin Dalecki <martin@dalecki.de> * doc/passes.texi: remove docs about "redundant PHI removal". * tree-pass.h: remove orphaned declaration of pass_redundant_phi. From-SVN: r119794
2006-12-12re PR tree-optimization/30159 (gcc.c-torture/execute/20010422-1.c is ↵Andrew MacLeod2-1/+7
miscompiled) 2006-12-12 Andrew Macleod <amacleod@redhat.com> PR tree-optimization/30159 * tree-ssa-coalesce.c (coalesce_ssa_name): Process single ssa_name functions in case a default_def coalesce is required. From-SVN: r119792
2006-12-12re PR libstdc++/11953 (_REENTRANT defined when compiling non-threaded code.)Jakub Jelinek4-1/+11
PR libstdc++/11953 * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined. * config/ia64/linux.h (CPP_SPEC): Define. * config/s390/linux.h (CPP_SPEC): Define. From-SVN: r119788