120240 Commits

Author SHA1 Message Date
François Dumont
51bf1e805e throw_allocator.h (__throw_value_base): Add move semantic, not throwing.
2012-10-05  François Dumont  <fdumont@gcc.gnu.org>

	* include/ext/throw_allocator.h (__throw_value_base): Add move
	semantic, not throwing.
	(__throw_value_limit): Likewise.
	(__throw_value_random): Likewise.
	* testsuite/util/exception/safety.h: Add validation of C++11
	methods emplace/emplace_front/emplace_back/emplace_hint.
	* testsuite/util/testsuite_container_traits.h: Signal emplace
	support on deque, forward_list, list and vector.
	* testsuite/23_containers/deque/requirements/exception/
	propagation_consistent.cc: Remove dg-do run fail.

From-SVN: r193184
2012-11-05 20:58:35 +00:00
Uros Bizjak
b8435aa945 mode-switching.c (create_pre_exit): Force late switching if __builtin_{apply,return} emitted a load that require...
* mode-switching.c (create_pre_exit): Force late switching if
	__builtin_{apply,return} emitted a load that require mode,
	other than MODE_EXIT.


Co-Authored-By: Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>

From-SVN: r193182
2012-11-05 20:46:31 +01:00
Paolo Carlini
935ec36fdd re PR libstdc++/55215 (Constructor seeding is broken for Mersenne twister)
2012-11-05  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/55215
	* include/bits/random.tcc (mersenne_twister_engine<>::seed(_Sseq&)):
	Assign state_size to _M_p.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/55215.cc:
	New.
	* testsuite/26_numerics/random/independent_bits_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	55215.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/55215.cc:
	Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	55215.cc: Likewise.

From-SVN: r193181
2012-11-05 19:25:20 +00:00
Richard Sandiford
d18090b591 re PR target/55204 (ICE: in extract_insn, at recog.c:2140 (unrecognizable insn) with -O --param loop-invariant-max-bbs-in-loop=0)
gcc/
	PR target/55204
	* config/i386/i386.c (ix86_address_subreg_operand): Remove stack
	pointer check.
	(print_reg): Use true_regnum rather than REGNO.
	(ix86_print_operand_address): Remove SUBREG handling.

From-SVN: r193178
2012-11-05 18:51:33 +00:00
Jan Hubicka
1bc60b1814 const-1.c: Update.
* gcc.dg/const-1.c: Update.
	* gcc.dg/pure-1.c: Update.
	* tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
	max_loop_iterations.

From-SVN: r193175
2012-11-05 18:12:37 +00:00
Florian Weimer
6d0ae0359c Detect overflow in size calculations in __cxa_vec_new{2,3}
2012-11-03  Florian Weimer  <fweimer@redhat.com>

	* libsupc++/vec.cc (compute_size): New.
	(__cxa_vec_new2, __cxa_vec_new3): Use it.
	* testsuite/18_support/cxa_vec.cc: New.

From-SVN: r193174
2012-11-05 18:48:46 +01:00
Ian Lance Taylor
0be1a5898f runtime: provide initcontext and fixcontext for NetBSD
From-SVN: r193173
2012-11-05 17:41:07 +00:00
Ian Lance Taylor
ae0b23e2ff os: support more OSes
From-SVN: r193172
2012-11-05 17:36:40 +00:00
Joern Rennecke
8db13a7fd8 reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip with a return instruction.
* reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
	with a return instruction.

From-SVN: r193171
2012-11-05 17:16:33 +00:00
Vladimir Makarov
1bdc4b116e re PR rtl-optimization/55151 (ICE: in assign_by_spills, at lra-assigns.c:1217 with -fPIC)
2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55151
	* lra-constraints.c (process_alt_operands): Permit putting reg
	value into memory.  Increase reject for this case.

2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55151
	* gcc.dg/pr55151.c: New test.

From-SVN: r193170
2012-11-05 16:38:27 +00:00
Dehao Chen
48866799f1 final.c (reemit_insn_block_notes): Do not change scope if insn location is UNKNOWN_LOCATION.
2012-11-05  Dehao Chen  <dehao@google.com>

	* final.c (reemit_insn_block_notes): Do not change scope if insn
	location is UNKNOWN_LOCATION.

From-SVN: r193169
2012-11-05 15:47:18 +00:00
Joern Rennecke
d327457f17 md.texi (Defining Attributes): Document that we are defining HAVE_ATTR_name macors as 1 for defined attributes...
* doc/md.texi (Defining Attributes): Document that we are defining
	HAVE_ATTR_name macors as 1 for defined attributes, and as 0
	for undefined special attributes.
	* final.c (asm_insn_count, align_fuzz): Always define.
	(insn_current_reference_address): Likewise.
	(init_insn_lengths): Use if (HAVE_ATTR_length) instead of
	#ifdef HAVE_ATTR_length.
	(get_attr_length_1, shorten_branches, final): Likewise.
	(final_scan_insn, output_asm_name): Likewise.
	* genattr.c (gen_attr): Define HAVE_ATTR_name macros for
	defined attributes as 1.
	Remove ancient get_attr_alternative compatibility code.
	For special purpose attributes not provided, define HAVE_ATTR_name
	as 0.
	In case no length attribute is given, provide stub definitions
	for insn_*_length* functions, and also include insn-addr.h.
	In case no enabled attribute is given, provide stub definition.
	* genattrtab.c (write_length_unit_log): Always write a definition.
	* hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
	* hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
	* lra-int.h (struct lra_insn_recog_data): Make member
	alternative_enabled_p unconditional.
	* lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
	#ifdef HAVE_ATTR_length.
	(lra_set_insn_recog_data): Likewise.  Make initialization of
	alternative_enabled_p unconditional.
	(lra_update_insn_recog_data): Use #if instead of #ifdef for
	HAVE_ATTR_enabled.
	* recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
	(extract_insn): Check HAVE_ATTR_enabled.
	(gate_handle_split_before_regstack): Use #if instead of
	#if defined for HAVE_ATTR_length.

From-SVN: r193168
2012-11-05 15:18:10 +00:00
Jakub Jelinek
1539ccbf52 re PR debug/54970 (Missing DW_OP_GNU_implicit_pointer in debuginfo)
PR debug/54970
	PR debug/54971
	* gcc.dg/guality/pr54970.c: Use NOP instead of "NOP" in inline-asm.

From-SVN: r193162
2012-11-05 15:36:47 +01:00
Jan Hubicka
d59171daa7 ipa-inline.c (compute_uninlined_call_time, [...]): New functions.
* ipa-inline.c (compute_uninlined_call_time,
	compute_inlined_call_time): New functions.
	(RELATIVE_TIME_BENEFIT_RANGE): New macro.
	(relative_time_benefit): Rewrite.
	(edge_badness): Rewrite path with guessed profile and estimated profile.
	* ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
	New hints.
	(struct inline_summary): Add GROWTH filed.
	* ipa-inline-analysis.c (dump_inline_hints): Update.
	(reset_inline_summary): Update.
	(dump_inline_summary): Update.
	(will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
	gimple_assign_load_p predicates.
	(estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
	(simple_edge_hints): New function.
	(do_estimate_edge_time): Return time of invocation of callee rather
	than the time scaled by edge frequency; update hints code.
	(do_estimate_edge_hints): Update.
	(do_estimate_growth): Cleanup.

From-SVN: r193161
2012-11-05 14:00:46 +00:00
Jan Hubicka
0450d71880 tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
* tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
	(maybe_lower_iteration_bound): Initialize not_executed_last_iteration to  NULL
	* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
	just_once_each_iteration_p; record estimated bound when loop has only one
	likely exit; test just_once_each_iteration_p before IV canon itself.

From-SVN: r193159
2012-11-05 11:14:16 +00:00
Jakub Jelinek
264bd20fa7 re PR target/55194 (h8300 ICE during conftest in libgcc dwarf2out:7605)
PR target/55194
	* dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
	also DWARF2_ADDR_SIZE 1 and 2.

From-SVN: r193158
2012-11-05 12:11:28 +01:00
Jan Hubicka
ae6e6a0808 ipa-inline.c (leaf_node_p): Rename to ...
* ipa-inline.c (leaf_node_p): Rename to ...
	(num_calls) ... this one.
	(want_early_inline_function_p): Allow smal growth on non-leafs.

From-SVN: r193157
2012-11-05 11:10:18 +00:00
Uros Bizjak
dcda5cc89c re PR testsuite/51128 (New LTO failures)
PR testsuite/51128
	* gcc.dg/torture/pr55018.c: Skip if -fno-fat-lto-objects was passed.

From-SVN: r193156
2012-11-05 11:59:49 +01:00
Jan Hubicka
d97cf33e65 * gcc.dg/autopar/pr49960.c: Fix testcase.
From-SVN: r193155
2012-11-05 10:45:03 +00:00
Uros Bizjak
e40bc13576 * gcc.dg/tree-ssa/cunroll-9.c: Fix scan file name.
From-SVN: r193154
2012-11-05 11:28:16 +01:00
Uros Bizjak
163e74804f cunroll-9.c: Dump cunrolli details.
* gcc.dg/tree-ssa/cunroll-9.c: Dump cunrolli details.
	Fix scan-tree-dump-times directive.

From-SVN: r193153
2012-11-05 11:22:52 +01:00
Jakub Jelinek
d459f8707b re PR debug/54402 (var-tracking does not scale)
PR debug/54402
	* var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
	hfp note.
	(vt_initialize): Look for fp_setter in any bb, not just successor of
	entry bb.

From-SVN: r193152
2012-11-05 08:58:48 +01:00
Oleg Endo
ead4af4fb6 sh.h (TARGET_CACHE32, [...]): Delete macro.
* config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
	(TARGET_SUPERSCALAR): Add TARGET_SH2A.
	(CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
	TARGET_CACHE32.
	(TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
	TARGET_HARVARD.
	* config/sh/sh.c (sh_trampoline_init): Likewise.

From-SVN: r193151
2012-11-05 01:06:18 +00:00
David Edelsohn
e091ffb72f * system.h (loc_t): Poison.
From-SVN: r193150
2012-11-04 19:20:21 -05:00
GCC Administrator
3141cfb622 Daily bump.
From-SVN: r193149
2012-11-05 00:18:22 +00:00
Marc Glisse
4d6503ab30 fold-const.c (fold_unary_loc): Disable conversion optimization for void type.
2012-11-05  Marc Glisse  <marc.glisse@inria.fr>

	* fold-const.c (fold_unary_loc): Disable conversion optimization
	for void type.

From-SVN: r193146
2012-11-04 23:38:10 +00:00
Thomas Schwinge
4044815128 acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message.
libatomic/
	* acinclude.m4 (LIBAT_CHECK_IFUNC): Clarify message.
	* configure: Regenerate.

From-SVN: r193145
2012-11-05 00:27:03 +01:00
Thomas Schwinge
b9efc87730 configure: Regenerate.
libatomic/
	* configure: Regenerate.

libitm/
	* configure: Regenerate.

From-SVN: r193144
2012-11-05 00:17:34 +01:00
Thomas Schwinge
460277e023 bid_functions.h: Check for __GLIBC__ additionally to LINUX when defining format specifiers.
libgcc/config/libbid/
	* bid_functions.h: Check for __GLIBC__ additionally to LINUX when
	defining format specifiers.

config/
	* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

gcc/
	* configure: Regenerate.

libdecnumber/
	* configure: Regenerate.

libgcc/
	* configure: Regenerate.

From-SVN: r193143
2012-11-05 00:08:42 +01:00
Samuel Thibault
b260c71fa5 configure.ac: Add stanza for *-*-gnu* threads configuration.
boehm-gc/
	* configure.ac: Add stanza for *-*-gnu* threads configuration.
	* configure: Regenerate.
	* include/gc_config.h.in: Likewise.
	* dyn_load.c (_GNU_SOURCE): Define for __GNU__.
	* include/gc_config_macros.h (_REENTRANT, GC_PTHREADS): Define for
	GC_GNU_THREADS.
	* include/private/gcconfig.h (DATASTART): Don't define for I386 &&
	HURD.
	(SIG_SUSPEND, SIG_THR_RESTART, SEARCH_FOR_DATA_START): Define for
	I386 && HURD.
	(UNIX_LIKE, REGISTER_LIBRARIES_EARLY): Define for HURD.
	* os_dep.c (GC_init_linux_data_start): Handle for HURD.
	* pthread_support.c (GC_thr_init): Add case for GC_GNU_THREADS.
	* specific.c: Use for GC_GNU_THREADS.
	* threadlibs.c: Add case for GC_GNU_THREADS.

From-SVN: r193142
2012-11-04 23:56:02 +01:00
Eric Botcazou
6c46750c83 combine.c: Adjust toplevel comment.
* combine.c: Adjust toplevel comment.
	(make_extraction): Adjust head comment and move up canonicalization.

From-SVN: r193141
2012-11-04 22:28:42 +00:00
Alexandre Oliva
e1066560cc re PR debug/54693 (VTA guality issues with loops)
PR debug/54693
* tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
for dropped IV sets.

From-SVN: r193139
2012-11-04 18:44:25 +00:00
Alexandre Oliva
447a704564 re PR debug/54693 (VTA guality issues with loops)
PR debug/54693
* tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
New, rewritten from debug stmt copying code...
(thread_around_empty_block): ... removed from here.
(thread_across_edge): Call propagate_threaded_block_debug_into.

From-SVN: r193138
2012-11-04 18:44:13 +00:00
Dehao Chen
48e3b832bd expr.c (expand_expr_real_1): Change to not using input_location.
2012-11-01  Dehao Chen  <dehao@google.com>

	* expr.c (expand_expr_real_1): Change to not using input_location.

From-SVN: r193137
2012-11-04 17:18:19 +00:00
Janus Weil
049bb74ea2 re PR fortran/55199 ([OOP] Equivalenced variable has wrong type when used with generic member function)
2012-11-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55199
	* primary.c (gfc_match_varspec): Clear typespec if it cannot be
	determined at this point.

2012-11-04  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/55199
	* gfortran.dg/associate_12.f90: New.

From-SVN: r193136
2012-11-04 18:13:16 +01:00
Jan Hubicka
f56f2d332c invoke.texi (profile-use): update documentation.
* invoke.texi (profile-use): update documentation.
	* opts.c (common_handle_option): Enable tree-vectorize
	and tree-loop-distribute-patterns.
	* tree-loop-distribution.c (tree_loop_distribution): Skip loops
	optimized for size.
	* config/i386/i386.c (ix86_option_override_internal): Enabe
	prefetch_lop_arrays for profile-use.

From-SVN: r193135
2012-11-04 15:51:18 +00:00
Uros Bizjak
da04ea110d ChangeLog: Fix whitespace.
* ChangeLog: Fix whitespace.
	* testsuite/ChangeLog: Ditto.

From-SVN: r193134
2012-11-04 15:03:50 +01:00
GCC Administrator
6ac8c2bec0 Daily bump.
From-SVN: r193132
2012-11-04 00:18:12 +00:00
Corinna Vinschen
443e623843 Fix for building against Mingw64 w32api
* configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
	against Mingw64 w32api.
	* configure: Regenerate.

From-SVN: r193129
2012-11-03 16:56:44 -07:00
H.J. Lu
1873ec0c11 Regenerate top-level configure
* configure: Regenerated.

From-SVN: r193128
2012-11-03 16:45:55 -07:00
Jack Howarth
f17e96d093 Add check_effective_target_masm_intel
PR target/54255
	* lib/target-supports.exp (check_effective_target_masm_intel): New
	proc.
	* gcc.target/i386/asm-dialect-1.c: Use dg-require-effective-target
	masm_intel.

From-SVN: r193127
2012-11-03 14:39:06 -07:00
H.J. Lu
2020066973 Add check_effective_target_maybe_x32
* lib/target-supports.exp (check_effective_target_maybe_x32): New
	proc.
	* gcc.target/i386/pr54457.c: Use dg-require-effective-target
	maybe_x32.
	* gcc.target/i386/pr53249.c: Likewise.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r193126
2012-11-03 14:36:48 -07:00
Andrew Pinski
bd7a7ec8fa octeon-bbit-3.c: Change the second call to abort to call abort1 so that cross jumping does not...
2012-11-03  Andrew Pinski  <apinski@cavium.com>

	 * gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to
	call abort1 so that cross jumping does not happen.

From-SVN: r193125
2012-11-03 12:22:08 -07:00
Robert Mason
2588b26e0e final patch for enabling VxWorks
From-SVN: r193124
2012-11-03 15:53:28 +00:00
Sandra Loosemore
358a3dbce6 extend.texi: Copy-edit to use present tense except when explicitly describing future or past...
2012-11-03  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to use present tense except when
	explicitly describing future or past behavior.

From-SVN: r193123
2012-11-03 11:13:08 -04:00
Oleg Endo
6387ab2cbd sh.c (output_movedouble, [...]): Use multi-line strings for asm.
* config/sh/sh.c (output_movedouble, output_far_jump,
	output_ieee_ccmpeq): Use multi-line strings for asm.
	(find_regmode_weight): Wrap lines.
	(sh_optimize_target_register_callee_saved): Remove commented out
	variable.
	(emit_load_ptr): Remove prototype.

From-SVN: r193120
2012-11-03 12:02:43 +00:00
Oleg Endo
4aaf79c2cf re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)
PR target/51244
	* config/sh/sh.md (*cbranch_t): Allow splitting after reload.
	Allow going beyond current basic block before reload when looking for
	the reg set insn.
	* config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.

	PR target/51244
	* gcc.target/sh/pr51244-18.c: New.
	* gcc.target/sh/pr51244-19.c: New.

From-SVN: r193119
2012-11-03 12:01:01 +00:00
Richard Sandiford
49503de9a9 octeon-exts-7.c (bar): Make sure the extraction of b requires a 64-bit operation followed by a truncation.
gcc/testsuite/
	* gcc.target/mips/octeon-exts-7.c (bar): Make sure the extraction of
	b requires a 64-bit operation followed by a truncation.

From-SVN: r193118
2012-11-03 09:48:36 +00:00
Jan Hubicka
cf648142d5 loop-38.c: Correct testcase.
* gcc.dg/tree-ssa/loop-38.c: Correct testcase.

	* tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
	missing sign to unsigned.

From-SVN: r193117
2012-11-03 00:46:52 +00:00
Jonathan Wakely
41ee74878a * doc/html/*: Regenerate.
From-SVN: r193116
2012-11-03 00:22:18 +00:00