1. 13 Aug, 2009 6 commits
  2. 12 Aug, 2009 31 commits
    • re PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in… · d5652a5a
      re PR target/41029 (ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008)
      
      	PR target/41029
      	* config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
      
      From-SVN: r150709
      Kaz Kojima committed
    • sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED. · d8158ff1
      	* config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
      
      From-SVN: r150708
      Kaz Kojima committed
    • compatibility-ldbl.cc: Add explicit namespace scope. · 5d32a15e
      2009-08-12  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/compatibility-ldbl.cc: Add explicit namespace scope.
      
      From-SVN: r150707
      Benjamin Kosnik committed
    • re PR tree-optimization/41011 (ICE in ipcp_lattice_from_jfunc, at ipa-cp.c:328) · 88ccda10
      2009-08-12  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/41011
      	* ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
      	and reference constructing.
      
      	* gfortran.dg/pr41011.f: New testcase.
      
      From-SVN: r150705
      Richard Guenther committed
    • inclhack.def (aix_complex): New fix. · f3ecb732
              * inclhack.def (aix_complex): New fix.
              * fixincl.x: Regenerate.
      
      From-SVN: r150704
      David Edelsohn committed
    • Fix to PR41012 · 6eb29714
      From-SVN: r150703
      Xinliang David Li committed
    • locks.h: Use atomic builtins For Linux EABI. · e8e76230
      2009-08-12  Andrew Haley  <aph@redhat.com>
      
      	* sysdep/arm/locks.h: Use atomic builtins For Linux EABI.
      	* configure.ac: Add ATOMICSPEC.
      	* libgcj.spec.in: Likewise.
      	* configure.host (arm*-linux*): Add -Wno-abi to cxxflags.
      	(testsuite/libjava.jvmti/jvmti-interp.exp): Likewise.
      	(testsuite/libjava.jvmti/jvmti.exp): Likewise.
      	(testsuite/libjava.jni/jni.exp): Likewise.
      	Set ATOMICSPEC.
      	Set LDFLAGS to work around libtool feature.
      
      From-SVN: r150702
      Andrew Haley committed
    • re PR bootstrap/41031 (ICE in insert_value_copy_on_edge preventing bootstrap on… · b2a58473
      re PR bootstrap/41031 (ICE in insert_value_copy_on_edge preventing bootstrap on sparc64 and s390x, testcase on cris-elf)
      
      2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
      
      	PR tree-optimization/41031
      	* tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
      	on the partition variable rather than promote_mode on the source
      	type.  Assert that the partition variable's type has the same
      	mode as the source value's.
      
      From-SVN: r150701
      Richard Sandiford committed
    • tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation for for_return == 2. · 666e3ceb
      2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
      
      	* doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
      	for for_return == 2.
      	* function.c (assign_parm_setup_reg): Use for_return == 2, improve
      	comments.
      	* calls.c (expand_call): Fix typo.
      	* explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
      	and PARM_DECL.
      	* stmt.c (expand_value_return): Use promote_function_mode to copy out
      	of pseudo.
      	* targhooks.c (default_promote_function_mode): Handle for_return == 2.
      	* config/cris/cris.c (cris_promote_function_mode): Likewise.
      	* config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
      	* config/pa/pa.c (pa_promote_function_mode): Likewise.
      
      From-SVN: r150700
      Paolo Bonzini committed
    • builtins.c (compareAndSwapInt_builtin): Use flag_use_atomic_builtins. · 4b462d77
      2009-08-12  Andrew Haley  <aph@redhat.com>
      
      	* builtins.c (compareAndSwapInt_builtin): Use
      	flag_use_atomic_builtins.
      	(compareAndSwapLong_builtin): Likewise.
      	(compareAndSwapObject_builtin): Likewise.
      	* jvspec.c: Add flag_use_atomic_builtins.
      	* gcj.texi: Likewise.
      	* java-tree.h: Likewise.
      	* lang.opt: Likewise.
      
      From-SVN: r150699
      Andrew Haley committed
    • synchronize.c: New file. · 97804369
      2009-08-11  Andrew Haley  <aph@redhat.com>
      
      	* gcc.target/arm/synchronize.c: New file.
      
      From-SVN: r150698
      Andrew Haley committed
    • arm.c (arm_init_libfuncs): Add __sync_synchronize. · 353a58f7
      2009-08-11  Andrew Haley  <aph@redhat.com>
      
      	* config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
      
      From-SVN: r150697
      Andrew Haley committed
    • Remove pragma GCC diagnostic warning "-Wc++-compat". · 4654745d
      2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR bootstrap/40103
      	* graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
      
      From-SVN: r150696
      Sebastian Pop committed
    • alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P. · daad0278
      2009-08-12  Richard Guenther  <rguenther@suse.de>
      
      	* alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
      	* gimplify.c (gimplify_modify_expr): Do not use
      	lang_hooks.types_compatible_p.
      	* tree-ssa.c (useless_type_conversion_p): For aggregates
      	just return false if the canonical types differ.
      
      From-SVN: r150695
      Richard Guenther committed
    • Prepare expressions to be good phi arguments. · 30de1632
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR middle-end/40980
      	* sese.c (convert_for_phi_arg): New.
      	(add_guard_exit_phis): Use convert_for_phi_arg.
      
      	* testsuite/gfortran.dg/graphite/id-17.f: New.
      
      From-SVN: r150694
      Sebastian Pop committed
    • Dont add unknown subscript upper bounds. · 8c31ebfa
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
      	unknown subscript upper bounds.
      
      	* testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
      
      From-SVN: r150693
      Sebastian Pop committed
    • Reimplement interchange heuristic. · fb9fb290
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      	    Pranav Garg  <pranav.garg2107@gmail.com>
      
      	* graphite-interchange.c (gather_access_strides): Removed.
      	(ppl_max_for_le): New.
      	(build_linearized_memory_access): New.
      	(memory_stride_in_loop): New.
      	(pbb_interchange_profitable_p): Reimplemented.
      	* graphite-ppl.h (ppl_new_id_map): New.
      	(ppl_interchange): New.
      
      	* testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
      
      
      Co-Authored-By: Pranav Garg <pranav.garg2107@gmail.com>
      
      From-SVN: r150692
      Sebastian Pop committed
    • Remove interchange heuristic. · 312aea7f
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-interchange.c (compute_subscript): Removed.
      	(compute_array_size_cstr): Removed.
      	(compute_array_size_poly): Removed.
      	(compute_array_size): Removed.
      	(gather_access_strides_poly): Removed.
      	(gather_access_strides): Empty.
      
      From-SVN: r150691
      Sebastian Pop committed
    • Add PDR->nb_subscripts. · 25d7cc15
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-dependences.c (dependence_polyhedron_1): Replace
      	pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
      	(graphite_legal_transform_dr): Same.
      	(graphite_carried_dependence_level_k): Same.
      	* graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
      	Initialize PDR_NB_SUBSCRIPTS.
      	(print_pdr_access_layout): Replace pdr_nb_subscripts with
      	PDR_NB_SUBSCRIPTS.
      	* graphite-poly.h (struct poly_dr): Add nb_subscripts field.
      	(PDR_NB_SUBSCRIPTS): New.
      	(pdr_nb_subscripts): Removed.
      	(pdr_dim): Simplified.
      	* graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
      	with PDR_NB_SUBSCRIPTS.
      
      From-SVN: r150690
      Sebastian Pop committed
    • Undo changes to the PDR representation. · 66096911
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-interchange.c (compute_array_size): Remove use of
      	PDR_DATA_CONTAINER.
      	* graphite-poly.c (new_poly_dr): Remove argument data_container.
      	Do not initialize PDR_DATA_CONTAINER.
      	(print_pdr): Do not print PDR_DATA_CONTAINER.
      	* graphite-poly.h (struct poly_dr): Remove data_container field.
      	(PDR_DATA_CONTAINER): Removed.
      	* graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
      	PDR_DATA_CONTAINER.
      	(build_poly_dr): Same.
      
      From-SVN: r150689
      Sebastian Pop committed
    • Add interchange testcase. · 273c5dd3
      2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* testsuite/gcc.dg/graphite/interchange-9.c: New.
      
      From-SVN: r150688
      Sebastian Pop committed
    • Fix memory leak in DD XFAILs some interchange testcases. · 7491e5f0
      2009-08-05  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
      	    Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-dependences.c (graphite_legal_transform_dr): Work on a
      	copy of the dependence polyhedron.  Free the temporary objects.
      	(graphite_carried_dependence_level_k): Free unused objects before
      	returning.
      
      	* testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
      	* testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
      	* testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
      	* testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
      	* testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
      
      
      Co-Authored-By: Sebastian Pop <sebastian.pop@amd.com>
      
      From-SVN: r150687
      Konrad Trifunovic committed
    • Restore original scattering when the transform is not legal. · f4648ed1
      2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
      	Early return without analyzing the data dependences if no
      	transform has been done.  Call restore_scattering if the transform
      	is not legal.
      	(graphite-interchange.c): Same.
      	* graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
      	(graphite_read_transforms): Initialize PBB_TRANSFORMED.
      	(apply_poly_transforms): Do not gcc_assert that
      	the transform is legal.
      	(new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
      	Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
      	PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
      	(free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
      	* graphite-poly.h (struct poly_scattering): New.
      	(struct poly_bb): Add original, transformed, and saved fields.
      	Remove transformed_scattering, original_scattering, nb_local_variables,
      	and nb_scattering_transform fields.
      	(PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
      	(poly_scattering_new): New.
      	(poly_scattering_free): New.
      	(poly_scattering_copy): New.
      	(store_scattering_pbb): New.
      	(store_scattering): New.
      	(restore_scattering_pbb): New.
      	(restore_scattering): New.
      	* graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
      	Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
      
      From-SVN: r150686
      Sebastian Pop committed
    • Correctly parenthesize pretty print structures. · e31a5bd4
      2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-poly.c (print_pbb): Add parentheses in the pretty print.
      	(print_scop): Same.
      
      From-SVN: r150685
      Sebastian Pop committed
    • Recompute profile after Graphite. · 8e88f9fd
      2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* Makefile.in (graphite.o): Depends on PREDICT_H.
      	* graphite.c: Include predict.h.
      	(graphite_finalize): Call tree_estimate_probability.
      	* predict.c (predict_loops): Do not call scev_initialize and
      	scev_finalize.
      	(tree_estimate_probability_bb): New.
      	(tree_estimate_probability): Do not initialize loops: move that
      	code to the driver.  Call tree_estimate_probability_bb.
      	(tree_estimate_probability_driver): New.
      	(pass_profile): Use tree_estimate_probability_driver.
      	* predict.h (tree_estimate_probability): Declared.
      
      From-SVN: r150684
      Sebastian Pop committed
    • Measure time spent in DD analysis and in code gen. · 87d4d0ee
      2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
      	* graphite-dependences.c (graphite_legal_transform): Add time to
      	TV_GRAPHITE_DATA_DEPS.
      	(dependency_between_pbbs_p): Same.
      	* timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
      
      From-SVN: r150683
      Sebastian Pop committed
    • [multiple changes] · 4c7af939
      2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
      
          PR rtl-optimization/41033
          * alias.c (nonoverlapping_component_refs_p): Punt if strict aliasing is disabled.
      
      2009-08-12  Richard Guenther  <rguenther@suse.de>
      
          PR rtl-optimization/41033
          * gcc.dg/pr41033.c: New test.
      
      From-SVN: r150680
      Andrey Belevantsev committed
    • re PR fortran/41034 (Wrongly rejected proc pointer assignment with CDECL… · c0e18b82
      re PR fortran/41034 (Wrongly rejected proc pointer assignment with CDECL (compiler-directive_1.f90))
      
      2009-08-12  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41034
              * symbol.c (gfc_copy_attr): Merge bits instead of replace
              bits in gfc_copy_attr.
              * gfc_check_pointer_assign (gfc_check_pointer_assign):
              Initialize ext_attr bits by zero.
      
      From-SVN: r150678
      Tobias Burnus committed
    • trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL. · 64754ed5
      2009-08-12  Richard Guenther  <rguenther@suse.de>
      
      	* trans-types.c (gfc_get_derived_type): Do not clear TYPE_CANONICAL.
      
      From-SVN: r150676
      Richard Guenther committed
    • extc++.h: Don't include TR1 if C++0x. · 12d74f0d
      2009-08-11  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/precompiled/extc++.h: Don't include TR1 if C++0x.
      	* include/precompiled/stdc++.h: Don't include cassert if
      	_GLIBCXX_NO_ASSERT defined.
      	* include/ext/cast.h (_GLIBCXX_BEGIN_NAMESPACE): Remove extra
      	semi-colon.
      	* include/ext/pointer.h (_GCC_CXX_POINTER_COMPARISON_OPERATION_SET):
      	Same.
      
      	* testsuite/17_intro/headers/all.cc: Move into dialect-specific
      	directory.
      	* testsuite/17_intro/headers/all_pedantic_errors.cc: Same.
      	* testsuite/17_intro/headers/all_assert_neg.cc: Same.
      	* testsuite/17_intro/headers/all_c++200x_compatibility.cc: Same.
      
      	* testsuite/17_intro/headers/c++1998/all.cc: Use extc++.h include.
      	* testsuite/17_intro/headers/c++1998/stdc++.cc: Converted all.cc,
      	use stdc++.h include.
      	* testsuite/17_intro/headers/c++1998/all_pedantic_errors.cc: Same.
      	* testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Same.
      	* testsuite/17_intro/headers/c++1998/all_c++200x_compatibility.cc: Same.
      	* testsuite/17_intro/headers/c++1998/all_no_exceptions.cc: New.
      	* testsuite/17_intro/headers/c++1998/all_multiple_inclusion.cc: To...
      	* testsuite/17_intro/headers/c++1998/stdc++_multiple_inclusion.cc
      	...this.
      	* testsuite/17_intro/headers/c++200x/all.cc: To...
      	* testsuite/17_intro/headers/c++200x/stdc++.cc: ..this.
      	* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: To...
      	* testsuite/17_intro/headers/c++200x/stdc++_multiple_inclusion.cc:
      	...this.
      	* testsuite/17_intro/headers/c++200x/all_no_exceptions.cc: New.
      	* testsuite/17_intro/headers/c++200x/all_pedantic_errors.cc: New.
      
      From-SVN: r150672
      Benjamin Kosnik committed
    • Daily bump. · 407bf46a
      From-SVN: r150671
      GCC Administrator committed
  3. 11 Aug, 2009 3 commits
    • re PR fortran/41022 ([F03] procedure pointer components as actual arguments) · 4561cbd0
      2009-08-11  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41022
      	* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
      	components as actual arguments.
      
      2009-08-11  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41022
      	* gfortran.dg/proc_ptr_comp_14.f90: New.
      
      From-SVN: r150665
      Janus Weil committed
    • re PR debug/40990 (bad .debug_pubnames entry from gcj) · df4aca79
      Fix PR debug/40990
      
      	PR debug/40990
      	* lang.c (put_decl_node): Outputs different level of information
      	depending on the verbosity level.
      
      From-SVN: r150659
      Dodji Seketeli committed
    • predicates.md (qi_mask_operand, [...]): New predicates. · b2c9d70f
      	* config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
      	si_mask_operand, and_load_operand, low_bitmask_operand,
      	and_reg_operand, and_operand): New predicates.
      	* config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
      	* config/mips/mips.c (and_operands_ok): New function.
      	* config/mips/mips-protos.h (and_operands_ok): Declare it.
      	* config/mips/mips.md (move_type): Add ext_ins and logical.
      	(type): Handle them.
      	(and<mode>3): Use and_reg_operand as the second operand's
      	predicate.
      	(*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
      	shift_shift.  Remove commutative constraint modifier.
      	(*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
      	shift_shift.
      	(*clear_upper32_dext): Remove define_insn_and_split.
      	(*clear_upper32): Turn this define_insn_and_split ...
      	(splitter for ANDing register with 0xffff_ffff): .. into this.
      
      testsuite/
      	* gcc.target/mips/ext-5.c: New test.
      	* gcc.target/mips/ext-6.c: New test.
      	* gcc.target/mips/ext-7.c: New test.
      	* gcc.target/mips/ext-8.c: New test.
      	* gcc.target/mips/extend-2.c: New test.
      
      From-SVN: r150657
      Adam Nemet committed