diff --cc gcc/ChangeLog
index 2bd3e1a,fe305e3..0000000
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@@ -1,380 -1,9 +1,386 @@@
+ 2014-08-14  Evandro Menezes  <e.menezes@samsung.com>
+ 
+ 	* config/aarch64/aarch64.c (generic_addrcost_table): Initialize
+ 	elements in the correct order.
+ 	(cortexa57_addrcost_table): Likewise.
+ 
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* rtl.h (previous_insn): Strengthen return type from rtx to
 +	rtx_insn *.
 +	(next_insn): Likewise.
 +	(prev_nonnote_insn): Likewise.
 +	(prev_nonnote_insn_bb): Likewise.
 +	(next_nonnote_insn): Likewise.
 +	(next_nonnote_insn_bb): Likewise.
 +	(prev_nondebug_insn): Likewise.
 +	(next_nondebug_insn): Likewise.
 +	(prev_nonnote_nondebug_insn): Likewise.
 +	(next_nonnote_nondebug_insn): Likewise.
 +	(prev_real_insn): Likewise.
 +	(next_real_insn): Likewise.
 +	(prev_active_insn): Likewise.
 +	(next_active_insn): Likewise.
 +
 +	* emit-rtl.c (next_insn): Strengthen return type from rtx to
 +	rtx_insn *, adding a checked cast.
 +	(previous_insn): Likewise.
 +	(next_nonnote_insn): Likewise.
 +	(next_nonnote_insn_bb): Likewise.
 +	(prev_nonnote_insn): Likewise.
 +	(prev_nonnote_insn_bb): Likewise.
 +	(next_nondebug_insn): Likewise.
 +	(prev_nondebug_insn): Likewise.
 +	(next_nonnote_nondebug_insn): Likewise.
 +	(prev_nonnote_nondebug_insn): Likewise.
 +	(next_real_insn): Likewise.
 +	(prev_real_insn): Likewise.
 +	(next_active_insn): Likewise.
 +	(prev_active_insn): Likewise.
 +
 +	* config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
 +	param "stepfunc" so that it returns an rtx_insn * rather than an
 +	rtx, to track the change to prev_nonnote_insn_bb, which is the
 +	only function this is called with.
 +	* config/sh/sh.c (sh_find_set_of_reg): Likewise.
 +
 +2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
 +
 +	* ipa-visibility.c (update_visibility_by_resolution_info): Fix
 +	assert.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* coretypes.h (class rtx_debug_insn): Add forward declaration.
 +	(class rtx_nonjump_insn): Likewise.
 +	(class rtx_jump_insn): Likewise.
 +	(class rtx_call_insn): Likewise.
 +	(class rtx_jump_table_data): Likewise.
 +	(class rtx_barrier): Likewise.
 +	(class rtx_code_label): Likewise.
 +	(class rtx_note): Likewise.
 +
 +	* rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
 +	adding the invariant DEBUG_INSN_P (X).
 +	(class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
 +	the invariant NONJUMP_INSN_P (X).
 +	(class rtx_jump_insn): New, a subclass of rtx_insn, adding
 +	the invariant JUMP_P (X).
 +	(class rtx_call_insn): New, a subclass of rtx_insn, adding
 +	the invariant CALL_P (X).
 +	(class rtx_jump_table): New, a subclass of rtx_insn, adding the
 +	invariant JUMP_TABLE_DATA_P (X).
 +	(class rtx_barrier): New, a subclass of rtx_insn, adding the
 +	invariant BARRIER_P (X).
 +	(class rtx_code_label): New, a subclass of rtx_insn, adding
 +	the invariant LABEL_P (X).
 +	(class rtx_note): New, a subclass of rtx_insn, adding
 +	the invariant NOTE_P(X).
 +	(is_a_helper <rtx_debug_insn *>::test): New.
 +	(is_a_helper <rtx_nonjump_insn *>::test): New.
 +	(is_a_helper <rtx_jump_insn *>::test): New.
 +	(is_a_helper <rtx_call_insn *>::test): New.
 +	(is_a_helper <rtx_jump_table_data *>::test): New functions,
 +	overloaded for both rtx and rtx_insn *.
 +	(is_a_helper <rtx_barrier *>::test): New.
 +	(is_a_helper <rtx_code_label *>::test): New functions, overloaded
 +	for both rtx and rtx_insn *.
 +	(is_a_helper <rtx_note *>::test): New.
 +
 +2014-08-19  Marek Polacek  <polacek@redhat.com>
 +
 +	* config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
 +	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
 +	* config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
 +	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* sel-sched-ir.h (BND_TO): insn_t will eventually be an
 +	rtx_insn *.  To help with transition, for now, convert from an
 +	access macro into a pair of functions: BND_TO, returning an
 +	rtx_insn *, and...
 +	(SET_BND_TO): New function, for use where BND_TO is used as an
 +	lvalue.
 +
 +	* sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
 +	SET_BND_TO.
 +	(BND_TO): New function, adding a checked cast.
 +	(SET_BND_TO): New function.
 +
 +	* sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
 +	SET_BND_TO.
 +	(compute_av_set_on_boundaries): Likewise.
 +
 +2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
 +
 +	* config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
 +	destination if it is used in source.
 +	(*clz<mode>2_lzcnt_falsedep_1): Likewise.
 +	(*popcount<mode>2_falsedep_1): Likewise.
 +
 +2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
 +
 +	PR other/62168
 +	* configure.ac: Set install_gold_as_default to no first.
 +	* configure: Regenerated.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
 +	"note_list" field will eventually be an rtx_insn *.  To help with
 +	transition, for now, convert from an access macro into a pair of
 +	functions: BB_NOTE_LIST, returning an rtx_insn *, and...
 +	(SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
 +	used as an lvalue.
 +
 +	* sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
 +	of BB_NOTE_LIST to SET_BB_NOTE_LIST.
 +
 +	* sel-sched-ir.c (init_bb): Likewise.
 +	(sel_restore_notes): Likewise.
 +	(move_bb_info): Likewise.
 +	(BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
 +	(SET_BB_NOTE_LIST): New function.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
 +	field will eventually be an rtx_insn *.  To help with transition,
 +	for now, convert from an access macro into a pair of functions:
 +	VINSN_INSN_RTX, returning an rtx_insn *, and...
 +	(SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
 +	is used as an lvalue.
 +
 +	* sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
 +	SET_VINSN_INSN_RTX where it's used as an lvalue.
 +	(VINSN_INSN_RTX): New function.
 +	(SET_VINSN_INSN_RTX): New function.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
 +	eventually be rtx_insn *, but to help with transition, for now,
 +	convert from an access macro into a pair of functions: DEP_PRO
 +	returning an rtx_insn * and...
 +	(SET_DEP_PRO): New function, for use where DEP_PRO is used as an
 +	lvalue, returning an rtx&.
 +	(DEP_CON): Analogous changes to DEP_PRO above.
 +	(SET_DEP_CON): Likewise.
 +
 +	* haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
 +	an lvalue to SET_DEP_CON.
 +	* sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
 +	(sd_copy_back_deps): Likewise for DEP_CON.
 +	(DEP_PRO): New function, adding a checked cast for now.
 +	(DEP_CON): Likewise.
 +	(SET_DEP_PRO): New function.
 +	(SET_DEP_CON): Likewise.
 +
 +2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
 +
 +	* config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
 +	(extra_options): Add i386/cygwin.opt.
 +	* config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
 +	(CPP_SPEC): Accept -pthread.
 +	(LINK_SPEC): Ditto.
 +	(GOMP_SELF_SPECS): Update comment.
 +	* config/i386/cygwin.opt: New file for -pthread flag.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* df-core.c (DF_REF_INSN): New, using a checked cast for now.
 +	* df.h (DF_REF_INSN): Convert from a macro to a function, so
 +	that we can return an rtx_insn *.
 +
 +2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
 +
 +	* config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
 +	when building executables, not DLLs.  Add --large-address-aware
 +	under the same conditions.
 +	* config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
 +	when building executables, not DLLs.  Add --large-address-aware
 +	under the same conditions when using -m32.
 +
 +	* config/i386/cygwin-stdint.h: Throughout, make type
 +	definitions dependent on target architecture, not host.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
 +	the return type from rtx to rtx_insn *,  which will enable various
 +	conversions in followup patches.  For now this is is done by a
 +	checked cast.
 +	(NEXT_INSN): Likewise.
 +	(SET_PREV_INSN): Convert to an inline function.  This is intended
 +	for use as an lvalue, and so returns an rtx& to allow in-place
 +	modification.
 +	(SET_NEXT_INSN): Likewise.
 +
 +2014-07-08  Mark Wielaard  <mjw@redhat.com>
 +
 +	PR debug/59051
 +	* dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
 +
 +2014-08-19  Marek Polacek  <polacek@redhat.com>
 +
 +	PR c/61271
 +	* cgraphunit.c (handle_alias_pairs): Fix condition.
 +
 +2014-08-19  Richard Biener  <rguenther@suse.de>
 +
 +	* gimple-fold.c (fold_gimple_assign): Properly build a
 +	null-pointer constant when devirtualizing addresses.
 +
 +2014-07-07  Mark Wielaard  <mjw@redhat.com>
 +
 +	* dwarf2out.c (decl_quals): New function.
 +	(modified_type_die): Take one cv_quals argument instead of two,
 +	one for const and one for volatile.
 +	(add_type_attribute): Likewise.
 +	(generic_parameter_die): Call add_type_attribute with one modifier
 +	argument.
 +	(base_type_for_mode): Likewise.
 +	(add_bounds_info): Likewise.
 +	(add_subscript_info): Likewise.
 +	(gen_array_type_die): Likewise.
 +	(gen_descr_array_type_die): Likewise.
 +	(gen_entry_point_die): Likewise.
 +	(gen_enumeration_type_die): Likewise.
 +	(gen_formal_parameter_die): Likewise.
 +	(gen_subprogram_die): Likewise.
 +	(gen_variable_die): Likewise.
 +	(gen_const_die): Likewise.
 +	(gen_field_die): Likewise.
 +	(gen_pointer_type_die): Likewise.
 +	(gen_reference_type_die): Likewise.
 +	(gen_ptr_to_mbr_type_die): Likewise.
 +	(gen_inheritance_die): Likewise.
 +	(gen_subroutine_type_die): Likewise.
 +	(gen_typedef_die): Likewise.
 +	(force_type_die): Likewise.
 +
 +2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 +
 +	* configure.ac (gcc_cv_as_comdat_group_group): Only default to no
 +	if unset.
 +	* configure: Regenerate.
 +
 +2014-08-19  Richard Biener  <rguenther@suse.de>
 +
 +	* lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
 +	DECL_EXTERNALs in BLOCKs as non-references.
 +	* tree-streamer-out.c (streamer_write_chain): Likewise.
 +
 +2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
 +	    Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
 +	    Anna Tikhonova  <anna.tikhonova@intel.com>
 +	    Ilya Tocar  <ilya.tocar@intel.com>
 +	    Andrey Turetskiy  <andrey.turetskiy@intel.com>
 +	    Ilya Verbin  <ilya.verbin@intel.com>
 +	    Kirill Yukhin  <kirill.yukhin@intel.com>
 +	    Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
 +
 +	* config/i386/sse.md
 +	(define_mode_iterator VI48_AVX512F): Delete.
 +	(define_mode_iterator VI48_AVX512F_AVX512VL): New.
 +	(define_mode_iterator VI2_AVX512VL): Ditto.
 +	(define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
 +	Delete.
 +	(define_insn
 +	("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
 +	New.
 +	(define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
 +	(define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
 +	(define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
 +	with VI48_AVX512F_AVX512VL): New.
 +	(define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
 +	with VI2_AVX512VL): Ditto.
 +
 +2014-08-19  Marek Polacek  <polacek@redhat.com>
 +
 +	* doc/invoke.texi: Document -Wc99-c11-compat.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* rtl.h (PREV_INSN): Split macro in two: the existing one,
 +	for rvalues, and...
 +	(SET_PREV_INSN): New macro, for use as an lvalue.
 +	(NEXT_INSN, SET_NEXT_INSN): Likewise.
 +
 +	* caller-save.c (save_call_clobbered_regs): Convert lvalue use of
 +	PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
 +	* cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
 +	(fixup_abnormal_edges): Likewise.
 +	(unlink_insn_chain): Likewise.
 +	(fixup_reorder_chain): Likewise.
 +	(cfg_layout_delete_block): Likewise.
 +	(cfg_layout_merge_blocks): Likewise.
 +	* combine.c (update_cfg_for_uncondjump): Likewise.
 +	* emit-rtl.c (link_insn_into_chain): Likewise.
 +	(remove_insn): Likewise.
 +	(delete_insns_since): Likewise.
 +	(reorder_insns_nobb): Likewise.
 +	(emit_insn_after_1): Likewise.
 +	* final.c (rest_of_clean_state): Likewise.
 +	(final_scan_insn): Likewise.
 +	* gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
 +	* haifa-sched.c (concat_note_lists): Likewise.
 +	(remove_notes): Likewise.
 +	(restore_other_notes): Likewise.
 +	(move_insn): Likewise.
 +	(unlink_bb_notes): Likewise.
 +	(restore_bb_notes): Likewise.
 +	* jump.c (delete_for_peephole): Likewise.
 +	* optabs.c (emit_libcall_block_1): Likewise.
 +	* reorg.c (emit_delay_sequence): Likewise.
 +	(fill_simple_delay_slots): Likewise.
 +	* sel-sched-ir.c (sel_move_insn): Likewise.
 +	(sel_remove_insn): Likewise.
 +	(get_bb_note_from_pool): Likewise.
 +	* sel-sched.c (move_nop_to_previous_block): Likewise.
 +
 +	* config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
 +	* config/c6x/c6x.c (gen_one_bundle): Likewise.
 +	(c6x_gen_bundles): Likewise.
 +	(hwloop_optimize): Likewise.
 +	* config/frv/frv.c (frv_function_prologue): Likewise.
 +	(frv_register_nop): Likewise.
 +	* config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
 +	(ia64_reorg): Likewise.
 +	* config/mep/mep.c (mep_reorg_addcombine): Likewise.
 +	(mep_make_bundle): Likewise.
 +	(mep_bundle_insns): Likewise.
 +	* config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
 +	* config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
 +	* config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
 +
 +2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 +
 +	* basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
 +	return type from rtx to rtx_insn *.
 +	(BB_END): Likewise.
 +	(BB_HEADER): Likewise.
 +	(BB_FOOTER): Likewise.
 +	(SET_BB_HEAD): Convert to a function.
 +	(SET_BB_END): Likewise.
 +	(SET_BB_HEADER): Likewise.
 +	(SET_BB_FOOTER): Likewise.
 +
 +	* cfgrtl.c (BB_HEAD): New function, from macro of same name.
 +	Strengthen the return type from rtx to rtx_insn *.  For now, this
 +	is done by adding a checked cast, but this will eventually
 +	become a field lookup.
 +	(BB_END): Likewise.
 +	(BB_HEADER): Likewise.
 +	(BB_FOOTER): Likewise.
 +	(SET_BB_HEAD): New function, from macro of same name.  This is
 +	intended for use as an lvalue, and so returns an rtx& to allow
 +	in-place modification.
 +	(SET_BB_END): Likewise.
 +	(SET_BB_HEADER): Likewise.
 +	(SET_BB_FOOTER): Likewise.
 +
  2014-08-18  David Malcolm  <dmalcolm@redhat.com>
  
  	* basic-block.h (BB_HEAD): Split macro in two: the existing one,
