Commit Graph

115502 Commits

Author SHA1 Message Date
Ian Lance Taylor
c3f87aa909 runtime: Implement runtime.Callers.
From-SVN: r184944
2012-03-05 17:07:37 +00:00
Torvald Riegel
d28b0b0861 libitm: Don't execute memtransfer/memset if size isn't larger than zero.
libitm/
	* dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
	memtransfer/memset if size isn't larger than zero.

From-SVN: r184941
2012-03-05 16:34:12 +00:00
Torvald Riegel
034209bc2f libitm: Update texinfo docs.
libitm/
	* libitm.texi: Link to specification and add a usage example.

From-SVN: r184940
2012-03-05 16:33:55 +00:00
Paolo Carlini
93d9a365d2 stl_algobase.h (iter_swap): In C++11 mode just call swap.
2012-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_algobase.h (iter_swap): In C++11 mode just
	call swap.
	* include/bits/stl_bvector.h (swap(_Bit_reference,
	_Bit_reference), swap(_Bit_reference, bool&),
	swap(bool&, _Bit_reference)): Add.
	* testsuite/23_containers/vector/bool/swap.cc: New.

From-SVN: r184939
2012-03-05 16:31:50 +00:00
Richard Guenther
510dbcce34 cfgloop.c (verify_loop_structure): Verify dominators before using them.
2012-03-05  Richard Guenther  <rguenther@suse.de>

	* cfgloop.c (verify_loop_structure): Verify dominators before
	using them.
	* graphite-clast-to-gimple.c (graphite_verify): Do not verify
	dominators from here.
	* graphite-scop-detection.c (create_sese_edges): Likewise.
	* loop-doloop.c (doloop_optimize_loops): Likewise.
	* loop-init.c (loop_optimizer_init): Likewise.
	* loop-unroll.c (unroll_and_peel_loops): Likewise.
	* loop-unswitch.c (unswitch_loops): Likewise.
	* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
	* tree-parloops.c (parallelize_loops): Likewise.  Verify
	only when checking is enabled.
	* tree-loop-distribution.c (tree_loop_distribution): Likewise.

From-SVN: r184937
2012-03-05 15:39:39 +00:00
Bernd Schmidt
50bcfce08b genautomata.c (parse_automata_opt): New static function.
* genautomata.c (parse_automata_opt): New static function.
	(initiate_automaton_gen): Remove all option handling code.  Remove
	argc argument.  All callers changed.
	(main): Call init_rtx_reader_args_cb with the new function as
	argument.

From-SVN: r184936
2012-03-05 15:38:06 +00:00
Joern Rennecke
c64f8a47d3 Fix ChangeLog record for 171649:
* ira-conflicts.c: Remove mentioning cover classes from the file.
        Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
-       ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
+       ALLOCNO_CLASS_COST instead of ALLOCNO_COVER_CLASS_COST.  Fix formatting.

From-SVN: r184935
2012-03-05 15:01:48 +00:00
Richard Guenther
cd7d9fd77b cfgexpand.c (gimple_expand_cfg): Free dominator info.
2012-03-05  Richard Guenther  <rguenther@suse.de>

	* cfgexpand.c (gimple_expand_cfg): Free dominator info.
	* tree-if-conv.c (combine_blocks): Free post-dominator info
	after breaking it.
	* tree-parloops.c (create_parallel_loop): Free and re-compute
	dominator info after breaking it.

From-SVN: r184933
2012-03-05 14:36:18 +00:00
Richard Guenther
b55f62ccae re PR middle-end/52353 (-ftrapv -fnon-call-exceptions does not work)
2012-03-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52353
	* optabs.h (trapv_unoptab_p): New function.
	(trapv_binoptab_p): Likewise.
	* optabs.c (expand_binop): Use emit_libcall_block_1 with
	a proper equiv_may_trap argument.
	(expand_unop): Likewise.
	(emit_libcall_block_1): Take extra argument whether the
	instruction may trap.  Renamed from ...
	(emit_libcall_block): ... this.  New wrapper.

From-SVN: r184932
2012-03-05 13:08:55 +00:00
Joseph Myers
8dad8b2590 * sv.po: Update.
From-SVN: r184930
2012-03-05 13:06:01 +00:00
Jakub Jelinek
3877a6a6c0 re PR tree-optimization/51721 (-Warray-bounds false positives and inconsistencies)
PR tree-optimization/51721
	* tree-vrp.c (register_edge_assert_for_2): If comparing
	lhs of right shift by constant with an integer constant,
	add ASSERT_EXPRs for the rhs1 of the right shift.

	* gcc.dg/tree-ssa/vrp63.c: New test.
	* gcc.dg/pr51721.c: New test.

From-SVN: r184927
2012-03-05 13:27:55 +01:00
Tristan Gingold
091fe9ca65 configure.ac: Enable gdb and readline for ia64*-*-*vms*.
2012-03-05  Tristan Gingold  <gingold@adacore.com>

	* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
	* configure: Regenerate.

From-SVN: r184926
2012-03-05 11:56:29 +00:00
Jakub Jelinek
f9df6f16c7 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
From-SVN: r184925
2012-03-05 12:53:01 +01:00
Richard Guenther
45c0175b88 tree.c (integer_zerop): Handle VECTOR_CSTs.
2012-03-05  Richard Guenther  <rguenther@suse.de>

	* tree.c (integer_zerop): Handle VECTOR_CSTs.
	(integer_onep): Likewise.
	(integer_all_onesp): Likewise.

From-SVN: r184923
2012-03-05 11:30:40 +00:00
Georg-Johann Lay
d84f3a058b avr.md (*umaddqihi4.2): New insn-and-split.
* config/avr/avr.md (*umaddqihi4.2): New insn-and-split.

From-SVN: r184919
2012-03-05 10:28:45 +00:00
Richard Guenther
1f338c3122 crontab: Remove 4.3 branch from the list of snapshots to make.
2013-03-05  Richard Guenther  <rguenther@suse.de>

        * crontab: Remove 4.3 branch from the list of snapshots to make.

From-SVN: r184918
2012-03-05 09:40:20 +00:00
Ian Lance Taylor
5e60b5708e re PR go/52342 (64-bit go.test/test/chan/doubleselect.go times out on Solaris/SPARC)
PR go/52342
runtime: Better big-endian identity hash function.

From-SVN: r184914
2012-03-05 06:39:08 +00:00
Ian Lance Taylor
dbe1e4a5a6 libgo: Fix Solaris ustat.h test.
From-SVN: r184913
2012-03-05 06:04:14 +00:00
Paolo Carlini
2203cb90fb re PR libstdc++/43813 ([DR1234] vector<T*>(3, NULL) fails to compile)
2012-03-04  Paolo Carlini  <paolo.carlini@oracle.com>
	    Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/43813
	* include/bits/stl_iterator_base_types.h (_RequireInputIter): New.
	* include/ext/vstring.h (__versa_string<>::__versa_string
	(_InputIterator, _InputIterator, const _Alloc&),
	__versa_string<>::append(_InputIterator, _InputIterator),
	__versa_string<>::assign(_InputIterator, _InputIterator),
	__versa_string<>::insert(iterator, _InputIterator,
	_InputIterator), __versa_string<>::replace(iterator, iterator,
	_InputIterator, _InputIterator)): Use it.
	* include/bits/stl_list.h (list<>::list(_InputIterator,
	_InputIterator, const allocator_type&), list<>::assign(_InputIterator,
	_InputIterator), list<>::insert(iterator, _InputIterator,
	_InputIterator)): Likewise.
	* include/bits/stl_vector.h (vector<>::vector(_InputIterator,
	_InputIterator, const allocator_type&), vector<>::assign(_InputIterator,
	_InputIterator), vectort<>::insert(iterator, _InputIterator,
	_InputIterator)): Likewise.
	* include/bits/stl_deque.h (deque<>::deque(_InputIterator,
	_InputIterator, const allocator_type&), deque<>::deque(_InputIterator,
	_InputIterator), deque<>::insert(iterator, _InputIterator,
	_InputIterator)): Likewise.
	* include/bits/stl_bvector.h (vector<>::vector(_InputIterator,
	_InputIterator, const allocator_type&), vector<>::deque(_InputIterator,
	_InputIterator), vector<>::insert(iterator, _InputIterator,
	_InputIterator)): Likewise.
	* include/bits/forward_list.h (forward_list<>::forward_list
	(_InputIterator, _InputIterator, const allocator_type&),
	forward_list<>::assign(_InputIterator, _InputIterator),
	forward_list<>::insert_after(const_iterator, _InputIterator,
	_InputIterator)): Likewise.
	(forward_list<>::_M_initialize_dispatch(,, __true_type): Remove.
	(forward_list<>::_M_range_initialize): Add, adjust everywhere.
	* include/bits/forward_list.tcc: Adjust.
	* include/debug/forward_list: Adjust.
	* include/debug/vector: Likewise.
	* include/debug/deque: Likewise.
	* include/debug/list: Likewise.
	* testsuite/ext/vstring/requirements/do_the_right_thing.cc: New.
	* testsuite/23_containers/forward_list/requirements/
	do_the_right_thing.cc: Likewise.
	* testsuite/23_containers/vector/requirements/
	do_the_right_thing.cc: Likewise.
	* testsuite/23_containers/deque/requirements/
	do_the_right_thing.cc: Likewise.
	* testsuite/23_containers/list/requirements/
	do_the_right_thing.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	assign_neg.cc: Adjust dg-error line number.
	* testsuite/23_containers/forward_list/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/forward_list/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	assign_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	assign_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/
	constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	assign_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	insert_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/
	constructor_2_neg.cc: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>

From-SVN: r184911
2012-03-05 01:15:28 +00:00
GCC Administrator
8e4ac5321e Daily bump.
From-SVN: r184910
2012-03-05 00:18:48 +00:00
Mikael Morin
5bf5fa563a re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)
fortran/
	PR fortran/50981
	* gfortran.h (gfc_is_class_container_ref): New prototype.
	* class.c (gfc_is_class_container_ref): New function.
	* trans-expr.c (gfc_conv_procedure_call): Add a "_data" component
	reference to polymorphic actual arguments.

testsuite/
	PR fortran/50981
	* gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual
	argument checks.

From-SVN: r184904
2012-03-04 21:50:08 +00:00
Uros Bizjak
f0050a4b2a i386.c (ix86_print_operand): Declare taken and cputaken as bool.
* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
	taken and cputaken as bool.

From-SVN: r184903
2012-03-04 22:32:36 +01:00
H.J. Lu
55b86fb00d Check Pmode instead of TARGET_64BIT
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
	instead of TARGET_64BIT.

From-SVN: r184901
2012-03-04 13:23:13 -08:00
H.J. Lu
4732e8de03 Check Pmode to set adjust_stack_insn
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
	adjust_stack_insn.

From-SVN: r184900
2012-03-04 13:21:55 -08:00
H.J. Lu
5ca9708b16 Only handle zero-extended DImode addresses
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_print_operand_address): Only handle
	zero-extended DImode addresses.

From-SVN: r184899
2012-03-04 13:19:43 -08:00
H.J. Lu
f57207b886 Update gcc.target/i386/pr52146.c to allow $-18874240
2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/52146
	* gcc.target/i386/pr52146.c: Update final-scan to allow $-18874240.

From-SVN: r184898
2012-03-04 13:17:34 -08:00
Anthony Green
34fa7690ac Merge upstream libffi
From-SVN: r184897
2012-03-04 21:11:09 +00:00
Mikael Morin
8b59af5c6a re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)
fortran/
	PR fortran/50981
	* trans-expr.c (gfc_conv_procedure_call): Save se->ss's value. 
	Handle the case of unallocated arrays passed to elemental procedures.

testsuite/
	PR fortran/50981
	* gfortran.dg/elemental_optional_args_5.f03: Add array checks.

From-SVN: r184896
2012-03-04 21:05:32 +00:00
Georg-Johann Lay
173be4663d pr52402.c: Add dg-require-effective-target
* gcc.dg/torture/pr52402.c: Add dg-require-effective-target

From-SVN: r184894
2012-03-04 20:56:34 +00:00
Mikael Morin
9bcf7121b6 trans.h (struct gfc_ss_info): Move can_be_null_ref component from the data::scalar subcomponent to the toplevel.
fortran/
	* trans.h (struct gfc_ss_info): Move can_be_null_ref component from
	the data::scalar subcomponent to the toplevel.
	* trans-expr.c (gfc_conv_expr): Update component reference.
	* trans-array.c (gfc_add_loop_ss_code): Ditto.
	(gfc_walk_elemental_function_args): Ditto.  Move the conditional setting
	the field out of the scalar-only block.

From-SVN: r184893
2012-03-04 20:46:55 +00:00
Uros Bizjak
904eea2c55 constraints.md (Ya): New internal constraint.
* config/i386/constraints.md (Ya): New internal constraint.
	* config/i386/i386.md (zero_extendsidi2): Remove expansion.
	(*zero_extendsidi2_rex64): Add x,x alternative.
	(*zero_extendsidi2): Ditto.  Add o,0 alternative.
	Remove flags reg clobber.  Adjust corresponding splits.
	(zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
	zero_extendqisi2 expanders using SWI12 mode iterator.
	(zero_extend<mode>si2_and): Macroize insn from
	zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
	splitters.
	(*zero_extend<mode>si2):  Macroize insn from
	*zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
	(*zero_extend*2_movzbl_and): Remove insn patterns.
	(zero_extendqihi2_and): Merge corresponding splitter.
	(*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
	(*zero_extend*2_movzbl_and): Remove insn patterns.
	(*anddi_1): Split TYPE_IMOVX instructions.
	(*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
	(*andhi_1): Ditto.
	(and->zext splitter): Add splitter pattern.
	(zero extend with andsi3 splitter): Adjust zero_extend pattern.

From-SVN: r184891
2012-03-04 19:54:26 +01:00
Georg-Johann Lay
d4ce363568 pr49871.c: Add dg-require-effective-target int32plus.
* gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target
	int32plus.

From-SVN: r184887
2012-03-04 15:40:56 +00:00
Francois-Xavier Coudert
a5d6c7540a re PR fortran/36160 (show_locus doesn't deal well with wide characters)
PR fortran/36160
	* error.c (gfc_widechar_display_length, gfc_wide_display_length):
	New functions.
	(print_wide_char_into_buffer): Return length written.
	(show_locus): Fix locus displayed when wide characters are present.

From-SVN: r184884
2012-03-04 14:35:56 +00:00
Francois-Xavier Coudert
c8191119d6 * module.c (gfc_use_module): Improve error message some more.
From-SVN: r184883
2012-03-04 14:29:30 +00:00
Eric Botcazou
c679ec1f5d * gnatvsn.ads (Library_Version): Bump to 4.8.
From-SVN: r184882
2012-03-04 13:11:06 +00:00
Jonathan Wakely
faef17d891 re PR libstdc++/52433 ([C++11] debug mode iterators need to move)
PR libstdc++/52433
        * include/debug/safe_iterator.h (_Safe_iterator): Add move
        constructor and move assignment operator.
        * testsuite/23_containers/vector/debug/52433.cc: New.

From-SVN: r184880
2012-03-04 12:49:22 +00:00
Sandra Loosemore
b12866c71e invoke.texi (C++ Dialect Options): Minor copy-edits to x86-specific text.
2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
	x86-specific text.
	(Debugging Options): Likewise.
	(Optimize Options): Likewise.
	(i386 and x86-64 Options): Discuss -march before -mtune, consistently
	with other architectures.  Use official processor names with correct
	spelling/capitalization.  Fix formatting and grammar issues.
	(i386 and x86-64 Windows Options): Similar cleanup here.

From-SVN: r184879
2012-03-04 02:46:31 -05:00
Jason Merrill
a491b7be7f * init.c (perform_member_init): Cope with uninstantiated NSDMI.
From-SVN: r184877
2012-03-03 19:55:51 -05:00
Jason Merrill
743af85b75 Core 1270
Core 1270
	* call.c (build_aggr_conv): Call reshape_init.
	(convert_like_real): Likewise.
	* typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
	not all constant.

From-SVN: r184876
2012-03-03 19:55:44 -05:00
Jason Merrill
dd94dde783 mangle.c (write_nested_name): Use decl_mangling_context.
* mangle.c (write_nested_name): Use decl_mangling_context.
	(write_prefix, write_template_prefix): Likewise.

From-SVN: r184875
2012-03-03 19:55:38 -05:00
Jason Merrill
77d4d7c577 re PR c++/36797 (ICE mangling __is_empty)
PR c++/36797
	* mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR.

From-SVN: r184874
2012-03-03 19:55:31 -05:00
Jason Merrill
57910f3a9a class.c (add_method): Always build an OVERLOAD for using-decls.
* class.c (add_method): Always build an OVERLOAD for using-decls.
	* search.c (lookup_member): Handle getting an OVERLOAD for a
	single function.

From-SVN: r184873
2012-03-03 19:53:30 -05:00
GCC Administrator
41fa723a78 Daily bump.
From-SVN: r184872
2012-03-04 00:19:32 +00:00
Kaz Kojima
4feaca8b0f sh.md (abssi2): Add TARGET_SH1 condition.
* config/sh/sh.md (abssi2): Add TARGET_SH1 condition.

From-SVN: r184867
2012-03-03 23:20:34 +00:00
Kaz Kojima
59248459e6 sh.c (sh_dwarf_register_span): Don't apply DBX_REGISTER_NUMBER.
* config/sh/sh.c (sh_dwarf_register_span): Don't apply
	DBX_REGISTER_NUMBER.

From-SVN: r184866
2012-03-03 23:19:07 +00:00
Kaz Kojima
dea148c40c sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.
* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
	operand is CONST_INT.  Take COSTS_N_INSNS into account.
	(sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
	of shiftcosts.

From-SVN: r184865
2012-03-03 23:16:08 +00:00
Francois-Xavier Coudert
d289d284ab re PR fortran/52313 (useless error message for old version of .mod file)
PR fortran/52313
	* module.c (gfc_use_module): Improve error messages.

From-SVN: r184864
2012-03-03 20:59:58 +00:00
Tobias Burnus
6230987eeb re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
2012-03-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48820
        * resolve.c (resolve_actual_arglist): Properly reset
        assumed_type_expr_allowed.

2012-03-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48820
        * gfortran.dg/assumed_type_3.f90: Undo previous commit.

From-SVN: r184863
2012-03-03 19:55:57 +01:00
Richard Henderson
a6de595f94 optabs.c (expand_atomic_test_and_set): Honor atomic_test_and_set_trueval even when atomic_test_and_set optab is not in use.
* optabs.c (expand_atomic_test_and_set): Honor
	atomic_test_and_set_trueval even when atomic_test_and_set
	optab is not in use.

From-SVN: r184862
2012-03-03 10:21:06 -08:00
Joseph Myers
6ecbd3a745 * de.po: Update.
From-SVN: r184860
2012-03-03 17:35:34 +00:00