2013-08-13  David Malcolm  <dmalcolm@redhat.com>

	* config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
	PASS_MANAGER_H



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

2013-08-13  David Malcolm  <dmalcolm@redhat.com>

	* gcc.dg/plugin/one_time_plugin.c: (one_pass_gate): Convert
	to member function...
	(one_pass::gate): ...this.
	(one_pass_exec): Convert to member function...
	(one_pass::impl_execute): ...this.



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

2013-08-13  David Malcolm  <dmalcolm@redhat.com>

	Example of converting global state to per-pass state.

	* gcc.dg/plugin/one_time_plugin.c (one_pass::execute): Convert
	global state "static int counter" to...
	(one_pass::counter): ...this instance data.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201681 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/utils2.c (build_atomic_load): Do a mere view-conversion
	to the original type before converting to the result type.
	(build_atomic_store): First do a conversion to the original type before
	view-converting to the effective type, but deal with a padded type
	specially.


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

	* cgraph.c (cgraph_turn_edge_to_speculative): Return newly
	introduced edge; fix typo in sanity check.
	(cgraph_resolve_speculation): Export; improve diagnostic.
	(cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
	speculation at type mismatch.
	* cgraph.h (cgraph_turn_edge_to_speculative): Update.
	(cgraph_resolve_speculation): Declare.
	(symtab_can_be_discarded): New function.
	* value-prof.c (gimple_ic_transform): Remove actual transform code.
	* ipa-inline-transform.c (speculation_removed): New global var.
	(clone_inlined_nodes): See if speculation can be removed.
	(inline_call): If speculations was removed, we growths may not match.
	* ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
	(speculation_useful_p): New function.
	(resolve_noninline_speculation): New function.
	(inline_small_functions): Resolve useless speculations.
	* ipa-inline.h (speculation_useful_p): Declare
	* ipa.c (can_replace_by_local_alias): Simplify.
	(ipa_profile): Produce speculative calls in non-lto, too;
	add simple cost model; produce local aliases.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201683 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc.dg/pr57980.c: Use vector of two elements, not just one.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201686 138bc75d-0d04-0410-961f-82ee72b054a4
	* config.host <mips*-*-linux*>: Remove a stray comment.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201689 138bc75d-0d04-0410-961f-82ee72b054a4
	* config.gcc: (avr-linux): Allow for tmake_file not being empty.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201690 138bc75d-0d04-0410-961f-82ee72b054a4
2013-08-13  Steve Ellcey  <sellcey@mips.com>

	* config/mips/mips.md (prefetch): Use lw instead of ld on
	loongson in 32bit mode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201691 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/trans.c (can_equal_min_or_max_val_p): Be prepared for
	values outside of the range of the type.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201692 138bc75d-0d04-0410-961f-82ee72b054a4
	PR sanitizer/56417
	* asan.c (instrument_strlen_call): Fix typo in comment.
	Use char * type even for the lhs of POINTER_PLUS_EXPR.

	* gcc.dg/asan/pr56417.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201696 138bc75d-0d04-0410-961f-82ee72b054a4
	PR tree-optimization/57661
	* tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
	* tree-inline.c (tree_function_versioning): Initialize it.
	(remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
	if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
	that is not being copied.

	* g++.dg/opt/pr57661.C: New test.


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

	* ira.c (setup_class_translate_array): Use aclass instead of cl
	for classes not fully covered by allocno classes.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201699 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/trans.c (Call_to_gnu): Deal with specific conditional
	expressions for misaligned actual parameters.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201700 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
	perform invalid legitimization on greater-than-word-size modes for
	TARGET_E500_DOUBLE.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201701 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): If
	there is no End_Label, attach cleanup actions to the sloc of the HSS
	node instead.
	(Exception_Handler_to_gnu_zcx): Associate cleanup actions with the sloc
	of the handler itself.
	(add_cleanup): Clear column information in sloc of cleanup actions.
	(Sloc_to_locus1): New static function.
	(Sloc_to_locus): Call it.
	(set_expr_location_from_node1): New static function.
	(set_expr_location_from_node): Call it.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201702 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/trans.c (set_end_locus_from_node): Clear column info
	for the end_locus of a block if it does not come from an End_Label.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201703 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/decl.c (gnat_to_gnu_entity): Replace True with true.
	(is_cplusplus_method): Likewise, and False with false.
	(components_need_strict_alignment): Likewise.
	* gcc-interface/misc.c (gnat_init_gcc_fp): Likewise.
	* gcc-interface/trans.c (Loop_Statement_to_gnu): Likewise.
	(Handled_Sequence_Of_Statements_to_gnu): Likewise.
	(add_cleanup): Likewise.
	(Sloc_to_locus1): Likewise.
	(Sloc_to_locus): Likewise.
	(set_expr_location_from_node): Likewise.
	* gcc-interface/utils.c (potential_alignment_gap): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201704 138bc75d-0d04-0410-961f-82ee72b054a4
	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
	sets of derived types in ASIS mode.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201705 138bc75d-0d04-0410-961f-82ee72b054a4
	* config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
	when Pmode != word_mode.  Add length_address attribute.
	(sse3_monitor_<mode>): Merge from sse3_monitor and
	sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
	Pmode != word_mode.  Update insn length attribute.
	* config/i386/i386.c (ix86_option_override_internal): Update
	ix86_gen_monitor selection for merged sse3_monitor insn.



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