* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Fix
	test for 32-bit target.
	* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc:
	Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc:
	Fix test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210517 138bc75d-0d04-0410-961f-82ee72b054a4
	* fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
	<CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.


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

	PR rtl-optimization/60969
	* ira-costs.c (record_reg_classes): Allow only memory for pseudo.
	Calculate costs for this case.

2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/60969
	* g++.dg/pr60969.C: New.



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

	PR c++/51640
	* parser.c (cp_parser_diagnose_invalid_type_name): Early return
	when cp_parser_lookup_name sets ambiguous_decls.

/testsuite
2014-05-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51640
	* g++.dg/parse/error54.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210521 138bc75d-0d04-0410-961f-82ee72b054a4
	* varpool.c (dump_varpool_node): Dump write-only flag.
	* lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
	write-only flag.
	* tree-cfg.c (execute_fixup_cfg): Remove statements setting write-only variables.


	* gcc.c-torture/execute/20101011-1.c: Update testcase.
	* gcc.dg/ira-shrinkwrap-prep-1.c: Update testcase.
	* gcc.dg/tree-ssa/writeonly.c: New testcase.
	* gcc.dg/tree-ssa/ssa-dse-6.c: Update testcase.
	* gcc.dg/tree-ssa/pr21559.c: Update testcase.
	* gcc.dg/debug/pr35154.c: Update testcase.
	* gcc.target/i386/vectorize1.c: Update testcase.
	* ipa.c (process_references): New function.
	(set_readonly_bit): New function.
	(set_writeonly_bit): New function.
	(clear_addressable_bit): New function.
	(ipa_discover_readonly_nonaddressable_var): Mark write only variables; fix
	handling of aliases.
	* cgraph.h (struct varpool_node): Add writeonly flag.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210522 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-14  David Wohlferd <dw@LimeGreenSocks.com>

	 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210524 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>

        * ira-costs.c: Fix typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210525 138bc75d-0d04-0410-961f-82ee72b054a4
2014-02-07  Benno Schulenberg  <bensberg@justemail.net>

	* config/arc/arc.c (arc_init): Fix typo in error message.
	* config/i386/i386.c (ix86_expand_builtin): Likewise.
	(split_stack_prologue_scratch_regno): Likewise.
	* fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
	word from error message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210526 138bc75d-0d04-0410-961f-82ee72b054a4
PR 61187 Fix use of uninitialized memory.

2014-05-16  Janne Blomqvist  <jb@gcc.gnu.org>

	PR libfortran/61187
	* io/unix.c (raw_close): Check if s->fd is -1.
	(fd_to_stream): Check return value of fstat(), handle error.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210527 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-16  Dehao Chen  <dehao@google.com>

	* cfghooks.c (make_forwarder_block): Use direct computation to
	get fall-through edge's count and frequency.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210528 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-16  Iain Sandoe  <iain@codesourcery.com>
	    Sandra Loosemore  <sandra@codesourcery.com>

        libstdc++-v3/
        * testsuite/libstdc++-abi/abi.exp: Defer setting of baseline_subdir
        until after checking that the test is eligible to be run.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210531 138bc75d-0d04-0410-961f-82ee72b054a4
Revert r209902 "Dump the return type of functions in gimple dumps"

This commit reverts r209902 aka 1f09cb43ee8e199dca339233fb1b92b7ffdbc660
due to issues described in
  https://gcc.gnu.org/ml/gcc-patches/2014-05/msg01271.html

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

	Revert:
	2014-04-29  David Malcolm  <dmalcolm@redhat.com>

	* tree-cfg.c (dump_function_to_file): Dump the return type of
	functions, in a line to itself before the function body, mimicking
	the layout of a C function.

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

	Revert:
	2014-04-29  David Malcolm  <dmalcolm@redhat.com>

	* gcc.dg/tree-ssa/pr23401.c: Update the expected number of
	occurrences of "int" in the gimple dump to reflect that the return
	types of functions now show up in such dumps.
	* gcc.dg/tree-ssa/pr27810.c: Likewise.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210533 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	* config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
	target variants.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210534 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	PR target/51244
	* config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
	negt_reg_operand cases.
	* config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
	predicate.
	* config/sh/predicates.md (cbranch_treg_value): Simplify.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210535 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-16  Dehao Chen  <dehao@google.com>

        * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use optimize_function_for_size_p.
        * regs.h (REG_FREQ_FROM_BB): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210536 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	PR target/54089
	* config/sh/predicates.md (negt_reg_shl31_operand): Match additional
	patterns.
	* config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210537 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-16  Dehao Chen  <dehao@google.com>

	* tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.


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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210542 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	* emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
	inplace argument.  Store the new address in the original MEM when true.
	* emit-rtl.c (change_address_1): Likewise.
	(adjust_address_1, adjust_automodify_address_1, offset_address):
	Update accordingly.
	* rtl.h (plus_constant): Add an inplace argument.
	* explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
	when true.  Avoid generating (plus X (const_int 0)).
	* function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
	in-place.  Pass true to plus_constant.
	(instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210543 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	* config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
	(rs6000_delegitimize_address): Use it.


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