fix pr62009 use after free in redirect_edge_var_map_dup

The change to get the entry for the old edge before inserting the new
one was incorrect because if inserting the new one resized the table
then the pointer to the entry for the old one would become invalid.

gcc/

	* tree-ssa.c (redirect_edge_var_map_dup): insert newe before
	getting olde.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213644 138bc75d-0d04-0410-961f-82ee72b054a4
gdbhooks.py: add "break-on-pass" command

gcc/
2014-08-05  David Malcolm  <dmalcolm@redhat.com>

        * gdbhooks.py (find_gcc_source_dir): New helper function.
        (class PassNames): New class, locating and parsing passes.def.
        (class BreakOnPass): New command "break-on-pass".



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213646 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213649 138bc75d-0d04-0410-961f-82ee72b054a4
[AArch64] Use REG_P and CONST_INT_P instead of GET_CODE + comparison.

	* config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
	CONST_INT_P instead of GET_CODE and compare.
	(aarch64_select_cc_mode): Likewise.
	(aarch64_print_operand): Likewise.
	(aarch64_rtx_costs): Likewise.
	(aarch64_simd_valid_immediate): Likewise.
	(aarch64_simd_check_vect_par_cnst_half): Likewise.
	(aarch64_simd_emit_pair_result_insn): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213651 138bc75d-0d04-0410-961f-82ee72b054a4
	PR rtl-optimization/61801
	* gcc.target/i386/pr61801.c: Rewritten.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213652 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc.dg/pr44194-1.c: Also exclude powerpc*-*-linux*, except if
	powerpc_elfv2.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213657 138bc75d-0d04-0410-961f-82ee72b054a4
[PATCH AArch64] Prefer dup to zip for vec_perm_const; enable dup for bigendian; add testcase.

gcc/:
	* config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
	(aarch64_expand_vec_perm_const): Check for dup before zip.

gcc/testsuite:

	* gcc.target/aarch64/vdup_n_2.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213659 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-06  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/61320
	* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
	handle misaligned loads.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213661 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-06  Richard Biener  <rguenther@suse.de>

	PR lto/62034
	* lto-streamer-in.c (lto_input_tree_1): Assert we do not read
	SCCs here.
	(lto_input_tree): Pop SCCs here.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213664 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-06  Martin Jambor  <mjambor@suse.cz>

	PR ipa/61393
	* cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213666 138bc75d-0d04-0410-961f-82ee72b054a4
2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>

	PR debug/61923
	* haifa-sched.c (advance_one_cycle): Fix dump.
	(schedule_block): Don't advance cycle if we are already at the
	beginning of the cycle.

2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>

	PR debug/61923
	* gcc.target/i386/pr61923.c: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213675 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc.dg/pr44194-1.c: Remove an extraneous brace.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213677 138bc75d-0d04-0410-961f-82ee72b054a4
/cp
2014-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/43906
	* typeck.c (cp_build_binary_op): Extend to more cases the
	-Waddress warning.

/testsuite
2014-08-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/43906
	* g++.dg/warn/Waddress-1.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213682 138bc75d-0d04-0410-961f-82ee72b054a4
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213686 138bc75d-0d04-0410-961f-82ee72b054a4
	* pt.c (check_explicit_specialization): Don't test
	DECL_DECLARED_INLINE_P for a variable template.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213687 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/61994
	* init.c (build_vec_init): Leave atype an ARRAY_TYPE
	if we're just returning an INIT_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213688 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/60417
	* init.c (build_vec_init): Reorganize earlier change a bit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213689 138bc75d-0d04-0410-961f-82ee72b054a4
	* init.c (build_vec_init): Fix constant initialization of
	trailing elements.
	(build_value_init_noctor): Call maybe_constant_init.
	* semantics.c (maybe_constant_init): See through EXPR_STMT and
	conversion to void.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213690 138bc75d-0d04-0410-961f-82ee72b054a4
ChangeLog
2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>

	* tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.

testsuite/ChangeLog
2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>

	* gcc.target/arm/get_address_cost_aligned_max_offset.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213691 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>

	* config/arm/arm.c (bdesc_2arg): Fix typo.
	(arm_atomic_assign_expand_fenv): Remove The default implementation.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213692 138bc75d-0d04-0410-961f-82ee72b054a4