Commit Graph

98097 Commits

Author SHA1 Message Date
Ralf Wildenhues
453897b4dd re PR testsuite/42414 (arbitrary path modification by a sed statement breaks testsuite if testsuite is in the absolute path)
Fix PR testsuite/42414.

gcc/:
	PR testsuite/42414
	* Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
	(check-parallel-%): Match `testsuite' directory component only
	at the end.

From-SVN: r155880
2010-01-14 07:20:31 +00:00
Shujing Zhao
5bc69b925d re PR translation/39521 (specs diagnostics translation problems)
po/
2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>

        PR translation/39521
        * exgettext: Extracted all specs %n strings and the %e strings that %e
        is at the start of a line.

2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>

        PR translation/39521
        * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
        strings with _().

From-SVN: r155878
2010-01-14 06:28:27 +00:00
Paul Thomas
40c3294835 re PR fortran/41478 (Corrupted memory using PACK for derived-types with allocated components)
2010-01-14  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/41478
        * trans-array.c (duplicate_allocatable):  Static version of
	gfc_duplicate_allocatable with provision to handle scalar
	components. New boolean argument to switch off call to malloc
	if true.
	(gfc_duplicate_allocatable): New function to call above with
	new argument false.
	(gfc_copy_allocatable_data): New function to call above with
	new argument true.
	(structure_alloc_comps): Do not apply indirect reference to
	scalar pointers. Add new section to copy allocatable components
	of arrays. Extend copying of allocatable components to include
	scalars.
	(gfc_copy_only_alloc_comp): New function to copy allocatable
	component derived types, without allocating the base structure.
	* trans-array.h : Add primitive for gfc_copy_allocatable_data.
	Add primitive for gfc_copy_only_alloc_comp.
	* trans-expr.c (gfc_conv_procedure_call): After calls to
	transformational functions with results that are derived types
	with allocatable components, copy the components in the result.
	(gfc_trans_arrayfunc_assign): Deallocate allocatable components
	of lhs derived types before allocation.
	

2010-01-14  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/41478
        * gfortran.dg/alloc_comp_scalar_1.f90: New test.
        * gfortran.dg/alloc_comp_transformational_1.f90: New test.

From-SVN: r155877
2010-01-14 06:17:38 +00:00
Paul Thomas
08b0203633 re PR fortran/42481 (generic interface not recognized)
2010-01-14  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/42481
	* module.c (load_generic_interfaces): If a procedure that is
	use associated but not generic is given an interface that
	includes itself, then make it generic.

2010-01-14  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/42481
	* gfortran.dg/generic_19.f90 : New test.

From-SVN: r155876
2010-01-14 06:13:19 +00:00
GCC Administrator
671ec5cbcf Daily bump.
From-SVN: r155875
2010-01-14 00:17:43 +00:00
Richard Guenther
5db959b648 re PR tree-optimization/42730 (ice: verify_stmts failed)
2010-01-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/42730
	* tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
	offset zero.

	* gcc.c-torture/compile/pr42730.c: New testcase.

From-SVN: r155872
2010-01-13 22:21:25 +00:00
Steve Ellcey
30c73d1a36 PR target/pr42542
2010-01-13  Steve Ellcey  <sje@cup.hp.com>

	PR target/pr42542
	* gcc.target/ia64/pr42542-1.c: New.
	* gcc.target/ia64/pr42542-2.c: New.
	* gcc.target/ia64/pr42542-3.c: New.

From-SVN: r155871
2010-01-13 22:17:27 +00:00
Steve Ellcey
9540f5ef92 PR target/pr42542
2010-01-13  Steve Ellcey  <sje@cup.hp.com>

	PR target/pr42542
	* config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
	for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
	them signed.

From-SVN: r155870
2010-01-13 22:16:25 +00:00
Dodji Seketeli
a5859aaf07 re PR c++/42634 (ICE with -g -O2 -std=c++0x in copy_fn_p, at cp/decl.c:9973)
Fix PR c++/42634

gcc/cp/ChangeLog:
	PR c++/42634
	* error.c (dump_template_parms): Use innermost template
	arguments before calling count_non_default_template_args.
	(count_non_default_template_args): We are being called with
	template innermost arguments now. There is no need to ensure
	that again.

gcc/testsuite/ChangeLog:
	PR c++/42634
	* g++.dg/template/error45.C: New test.

From-SVN: r155868
2010-01-13 21:06:26 +01:00
Bernd Schmidt
6cca15ea85 bfin.c (bfin_reorg): Call run_selective_scheduling rather than schedule_insns if the pass is enabled.
* config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
	rather than schedule_insns if the pass is enabled.

From-SVN: r155867
2010-01-13 20:00:03 +00:00
Bernd Schmidt
84fb8ff511 libgcc-bfin.ver: Regenerate based on current libgcc-std.ver.
* config/bfin/libgcc-bfin.ver: Regenerate based on current
	libgcc-std.ver.  Add entries for ___smulsi3_highpart and
	___umulsi3_highpart.

From-SVN: r155866
2010-01-13 19:53:01 +00:00
Martin Jambor
19656178bc re PR tree-optimization/42704 (ICE in verify_ssa after early SRA)
2010-01-13  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/42704
	* tree-sra.c (sra_modify_assign): Do not delete assignments to
	SSA_NAMEs.

	* testsuite/g++.dg/torture/pr42704.C: New test.

From-SVN: r155865
2010-01-13 19:47:19 +01:00
Benjamin Kosnik
2a2ace66e9 iterator_tracker.h: Add copyright.
2010-01-13  Benjamin Kosnik  <bkoz@redhat.com>

	* include/profile/iterator_tracker.h: Add copyright.

From-SVN: r155864
2010-01-13 18:31:25 +00:00
Martin Jambor
6dc93b16c6 re PR tree-optimization/42703 (ICE in generate_subtree_copies with out of bounds array access)
2010-01-13  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/42703
	* tree-sra.c (analyze_access_subtree): Check that we can build a
	reference to the original data within the aggregate.

	* testsuite/gcc.c-torture/compile/pr42703.c: New test.

From-SVN: r155863
2010-01-13 16:37:37 +01:00
Richard Guenther
1d21a8e566 re PR tree-optimization/42705 (verify_flow_info failed with -O)
2010-01-13  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/42705
	* tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after
	labels.

	* gcc.c-torture/compile/pr42705.c: New testcase.

From-SVN: r155861
2010-01-13 15:04:38 +00:00
Jie Zhang
9858e0ccda l2.c: New test.
* gcc.target/bfin/l2.c: New test.
	* gcc.target/bfin/bfin.exp (dg-bfin-processors): New.

From-SVN: r155860
2010-01-13 14:57:59 +00:00
Richard Guenther
48f30f629f re PR middle-end/42716 (ICE in extract_range_from_assert, at tree-vrp.c:1423)
2010-01-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/42716
	* fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.

	* gcc.c-torture/compile/pr42716.c: New testcase.

From-SVN: r155859
2010-01-13 13:31:13 +00:00
Jakub Jelinek
9e73c69087 re PR debug/41371 (var-tracking is slow and memory hungry)
PR debug/41371
	* var-tracking.c (values_to_unmark): New variable.
	(find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
	values_to_unmark vector.  Moved body to...
	(find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
	instead queue it into values_to_unmark vector.
	(vt_find_locations): Free values_to_unmark vector.

From-SVN: r155858
2010-01-13 14:26:47 +01:00
Wolfgang Gellerich
dc2f28c58b s390.c (override_options): Set default of max-pending-list-length to 256
2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>

	* config/s390/s390.c (override_options): Set
	default of max-pending-list-length to 256

From-SVN: r155856
2010-01-13 11:40:58 +00:00
Joel Brobecker
d9019c9941 Add new DW_AT_use_GNAT_descriptive_type CU attribute.
* dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.

From-SVN: r155855
2010-01-13 11:13:53 +00:00
Paolo Carlini
da9debb8d6 Makefile.am (check-debug): Add.
2010-01-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/Makefile.am (check-debug): Add.
	* testsuite/Makefile.in: Regenerate.
	* config.h.in: Likewise.

From-SVN: r155854
2010-01-13 11:07:44 +00:00
Richard Guenther
688a482d63 re PR middle-end/42678 (ICE with lto1 in expand_mult, at expmed.c:3253)
2010-01-13  Richard Guenther  <rguenther@suse.de>

	PR lto/42678
	* tree-pass.h (PROP_gimple_lcx): New.
	* cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
	* passes.c (init_optimization_passes): Move pass_lower_complex_O0
	before the final cleanup_eh.
	(dump_properties): Dump PROP_gimple_lcx.
	* tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
	(tree_lower_complex_O0): Remove.
	(gate_no_optimization): Run if PROP_gimple_lcx is not set.
	(pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
	tree_lower_complex, schedule TODO_update_ssa.
	* lto-streamer-out.c (output_function): Stream the functions
	properties.
	* lto-streamer-in.c (input_function): Likewise.
	(lto_read_body): Do not override them here.

	* gfortran.dg/lto/20100110-1_0.f90: New testcase.

From-SVN: r155853
2010-01-13 10:07:47 +00:00
GCC Administrator
288de41a81 Daily bump.
From-SVN: r155849
2010-01-13 00:17:39 +00:00
Joseph Myers
e616f54d28 re PR c/42708 (ICE in gimplify_expr, at gimplify.c:6993)
PR c/42708
	* c-typeck.c (build_c_cast): Fold value cast to union type before
	wrapping it in a CONSTRUCTOR.

testsuite:
	* gcc.c-torture/compile/pr42708-1.c: New test.

From-SVN: r155846
2010-01-12 23:09:00 +00:00
Jakub Jelinek
b4ab701fcc re PR rtl-optimization/42699 (ZERO_EXTRACT on lhs never optimized out)
PR rtl-optimization/42699
	* cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
	involved.

From-SVN: r155844
2010-01-12 21:25:10 +01:00
Paolo Carlini
932f6f4a2c using_namespace_std_tr1_neg.cc: Do not run in parallel-mode.
2010-01-12  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/17_intro/using_namespace_std_tr1_neg.cc: Do not run
	in parallel-mode.
	* testsuite/25_algorithms/inplace_merge/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/rotate/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/stable_partition/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/remove/moveable.c: Likewiwse.
	* testsuite/25_algorithms/random_shuffle/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/nth_element/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/partial_sort/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/next_permutation/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/partition/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/stable_sort/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/stable_sort/moveable2.cc: Likewiwse.
	* testsuite/25_algorithms/sort/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/prev_permutation/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/unique/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/remove_if/moveable.cc: Likewiwse.
	* testsuite/25_algorithms/heap/moveable.cc: Likewiwse.

	* testsuite/25_algorithms/search_n/iterator.cc: Reduce iteration #
	in parallel-mode.

From-SVN: r155841
2010-01-12 17:16:25 +00:00
Rainer Orth
4dde664fb1 iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC, [...]): Move ...
* config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
	SUBTARGET_WARN_UNUSED_SPEC): Move ...
	config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
	SUBTARGET_WARN_UNUSED_SPEC): ... here
	* config/mips/iris5.h (LIBGCC_SPEC): Define.

From-SVN: r155837
2010-01-12 12:38:49 +00:00
Julian Brown
24fe19c35a Fix Neon Scheduler ocaml description.
For 

2010-01-12  Julian Brown  <julian@codesourcery.com>

        * config/arm/neon-schedgen.ml (Utils): Don't try to
        open missing module.
        (find_with_result): New.

From-SVN: r155835
2010-01-12 11:50:36 +00:00
Jakub Jelinek
acc2dd549f Update Copyright years.
From-SVN: r155833
2010-01-12 10:49:51 +01:00
Jakub Jelinek
4942b76bf6 re PR debug/42662 (invalid rtl sharing found in the insn)
PR debug/42662
	* simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
	sharing when canonicalizing ({lt,ge}u (plus a b) b).

	* gcc.dg/pr42662.c: New test.

From-SVN: r155831
2010-01-12 10:45:19 +01:00
Jakub Jelinek
082ab5ff77 re PR tree-optimization/42645 ("-fcompare-debug failure" at -O1)
PR tree-optimization/42645
	* tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
	(remap_ssa_name): If processing_debug_stmt and name wasn't found in
	decl_map, set processing_debug_stmt to -1 and return name without
	any remapping.

	* g++.dg/other/pr42645-1.C: New test.
	* g++.dg/other/pr42645-2.C: New test.

From-SVN: r155830
2010-01-12 10:43:31 +01:00
Hans-Peter Nilsson
b1a54dd052 all.cc: Pass -D_GLIBCXX_PROFILE_NO_THREADS for non-tls_native targets.
* testsuite/ext/profile/all.cc: Pass -D_GLIBCXX_PROFILE_NO_THREADS
	for non-tls_native targets.

From-SVN: r155829
2010-01-12 05:24:12 +00:00
Benjamin Kosnik
220fceaaa4 run_doxygen: Correct nested scope on the man pages.
2010-01-12  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/run_doxygen: Correct nested scope on the man pages.
	* doc/xml/faq.xml: Edits, linkcheck, doxygen link reassociate.
	* doc/xml/manual/mt_allocator.xml: Same.
	* doc/xml/manual/allocator.xml: Same.
	* doc/xml/manual/codecvt.xml: Same.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/concurrency.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/io.xml: Same.
	* doc/xml/manual/support.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/using.xml: Same.
	* doc/xml/manual/extensions.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/prerequisites.xml: Same.
	* doc/xml/manual/diagnostics.xml: Same.
	* doc/xml/manual/spine.xml: Same.
	* doc/xml/manual/status_cxx200x.xml: Same.
	* doc/xml/manual/test.xml: Same.
	* doc/xml/spine.xml: Same.
	* doc/html/*: Regenerate.

	* include/profile/impl/profiler.h: Remove duplicate markup.

From-SVN: r155828
2010-01-12 01:37:39 +00:00
Benjamin Kosnik
a2edd3e945 run_doxygen: Correct nested scope on the man pages.
2010-01-07  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/run_doxygen: Correct nested scope on the man pages.
	* doc/xml/faq.xml: Edits, linkcheck, doxygen link reassociate.
	* doc/xml/manual/mt_allocator.xml: Same.
	* doc/xml/manual/allocator.xml: Same.
	* doc/xml/manual/codecvt.xml: Same.
	* doc/xml/manual/backwards_compatibility.xml: Same.
	* doc/xml/manual/concurrency.xml: Same.
	* doc/xml/manual/parallel_mode.xml: Same.
	* doc/xml/manual/io.xml: Same.
	* doc/xml/manual/support.xml: Same.
	* doc/xml/manual/evolution.xml: Same.
	* doc/xml/manual/using.xml: Same.
	* doc/xml/manual/extensions.xml: Same.
	* doc/xml/manual/appendix_contributing.xml: Same.
	* doc/xml/manual/prerequisites.xml: Same.
	* doc/xml/manual/diagnostics.xml: Same.
	* doc/xml/manual/spine.xml: Same.
	* doc/xml/manual/status_cxx200x.xml: Same.
	* doc/xml/manual/test.xml: Same.
	* doc/xml/spine.xml: Same.
	* doc/html/*: Regenerate.

	* include/profile/impl/profiler.h: Remove duplicate markup.

From-SVN: r155827
2010-01-12 01:37:06 +00:00
Jonathan Wakely
d90d97ff9c re PR libstdc++/24803 ([c++0x] reference_wrapper and pointers to member functions)
2010-01-12  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/24803
	PR libstdc++/35569
	PR libstdc++/42593
	* include/std/functional (bind): Forward rvalues and detect correct
	result type of bound function object.
	* include/std/mutex (call_once): Specify bind result type.
	* testsuite/20_util/reference_wrapper/invoke.cc: Remove invalid tests.
	* testsuite/20_util/reference_wrapper/24803.cc: Remove invalid tests
	and enable FIXME tests.
	* testsuite/20_util/bind/35569.cc: New.
	* testsuite/20_util/bind/ref2.cc: New.
	* testsuite/20_util/bind/38889.cc: New.
	* testsuite/20_util/bind/ref_neg.cc: New.
	* testsuite/20_util/bind/42593.cc: New.

From-SVN: r155826
2010-01-12 00:53:30 +00:00
Paolo Carlini
31380bc4c5 base.h (decode2): Rename to __decode2.
2010-01-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/parallel/base.h (decode2): Rename to __decode2.
	(binder2nd): Likewise to __binder2nd.
	* include/parallel/quicksort.h: Adjust callers.
	* include/parallel/balanced_quicksort.h: Likewise.
	* include/parallel/partition.h: Likewise.
	* include/parallel/queue.h: Likewise.

	* include/parallel/algo.h: Qualify with std:: binder2nd use.

From-SVN: r155825
2010-01-12 00:51:50 +00:00
GCC Administrator
3383f24d53 Daily bump.
From-SVN: r155824
2010-01-12 00:16:48 +00:00
Dave Korn
977f799755 install.texi (Specific#x-x-cygwin): Document minimum required binutils version...
* doc/install.texi (Specific#x-x-cygwin): Document minimum required
	binutils version, and reword target configuration description.

From-SVN: r155821
2010-01-11 23:43:21 +00:00
Andy Hutchinson
3cdea2b453 lto.c (O_BINARY): Define.
2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

   * lto.c (O_BINARY): Define.
   (lto_read_section_data): Open file in binary mode.
   * lto-elf.c (O_BINARY): Define.
   (lto_elf_file_open): Open file in binary mode.

From-SVN: r155820
2010-01-11 23:15:32 +00:00
Andy Hutchinson
2685baa15f avr.h (LINKER_NAME): Remove.
2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>

	* config/avr/avr.h (LINKER_NAME): Remove.

From-SVN: r155819
2010-01-11 23:12:14 +00:00
Joseph Myers
42138585a4 * fi.po: Update.
From-SVN: r155817
2010-01-11 20:52:17 +00:00
Janis Johnson
3767f51242 re PR target/42416 (ICE in rs6000_bulitin_vec_perm for 177.mesa with -mvsx)
PR target/42416
	* config/rs6000/rs6000.c (rs6000_override_options): On targets
	that support VSX, warn for -mno-altivec if vsx is not disabled,
	and disable vsx.
	* gcc.target/powerpc/warn-1.c: New test.
	* gcc.target/powerpc/warn-2.c: New test.

From-SVN: r155816
2010-01-11 20:29:40 +00:00
Uros Bizjak
a6ffbb9c26 asm-support.S (snapshot_ret): Preserve stack alignment.
* gcc.target/x86_64/abi/avx/asm-support.S (snapshot_ret): Preserve
	stack alignment.

From-SVN: r155814
2010-01-11 19:58:44 +01:00
Richard Guenther
c164615b36 re PR lto/41569 (.../prev-gcc/xgcc used for the install step of the lto-plugin)
2010-01-11  Richard Guenther  <rguenther@suse.de>

	PR lto/41569
	* Makefile.def (all-lto-plugin): Depend on all-gcc.
	* Makefile.in: Regenerated.

	lto-plugin/
	* Makefile.am: Disable dependencies.
	* Makefile.in: Regenerated.

From-SVN: r155809
2010-01-11 12:38:09 +00:00
Mikael Pettersson
c448ab16ea Makefile.in: Add arm*-*-linux-gnueabi.
* gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
	* system-linux-armeb.ads, system-linux-armel.ads: New files.

From-SVN: r155808
2010-01-11 12:04:19 +00:00
Joseph Myers
5df59dbbf1 * zh_CN.po: Update.
From-SVN: r155807
2010-01-11 11:48:24 +00:00
Joseph Myers
ae14ad94e4 * cpplib.pot: Regenerate.
From-SVN: r155806
2010-01-11 11:47:16 +00:00
Joseph Myers
1c76b34f6f * gcc.pot: Regenerate.
From-SVN: r155805
2010-01-11 11:46:39 +00:00
Tristan Gingold
5b40c067ef demangle.h (ada_demangle): Add prototype.
include/
2010-01-11  Tristan Gingold  <gingold@adacore.com>

	* demangle.h (ada_demangle): Add prototype.

libiberty/
2010-01-11  Tristan Gingold  <gingold@adacore.com>

	* cplus-dem.c (ada_demangle): Remove prototype.
	(grow_vect): Removed.
	(ada_demangle): Rewritten.
	(cplus_demangle): Fix indentation.
	* testsuite/demangle-expected: Add tests for Ada.

From-SVN: r155804
2010-01-11 11:38:35 +00:00
Andreas Tobler
f3f623aeaf configure.ac: Enable libjava build on x86_64-*freebsd*.
2010-01-11  Andreas Tobler  <andreast@fgznet.ch>

	* configure.ac: Enable libjava build on x86_64-*freebsd*.
	* configure: Regenerate.

From-SVN: r155803
2010-01-11 12:10:55 +01:00