2013-10-03  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/19476
gcc/c-family/
	* c.opt (fcheck-new): Move to common.opt.

gcc/
	* common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
	* calls.c (alloca_call_p): Use get_callee_fndecl.
	* fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
	* tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
	Likewise.
	(vrp_visit_stmt): Remove duplicated code.

gcc/testsuite/
	* g++.dg/tree-ssa/pr19476-1.C: New file.
	* g++.dg/tree-ssa/pr19476-2.C: Likewise.
	* g++.dg/tree-ssa/pr19476-3.C: Likewise.
	* g++.dg/tree-ssa/pr19476-4.C: Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203163 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-03  Marc Glisse  <marc.glisse@inria.fr>

	* libsupc++/del_op.cc (operator delete): Don't test for 0 before free.
	* libsupc++/del_opnt.cc (free): Only declare if freestanding.
	(operator delete): Qualify free with std::.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203164 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/58510
cp/
	* init.c (sort_mem_initializers): Splice when giving an error.
testsuite/
	* g++.dg/cpp0x/pr58510.C: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203165 138bc75d-0d04-0410-961f-82ee72b054a4
        * predict.c (tree_predict_by_opcode): Get the probability
        for builtin_expect from param builtin_expect_probability.
        * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
        * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
        * doc/invoke.texi: Add documentation for builtin-expect-probability.
        * gcc.target/i386/cold-attribute-2.c: Fix the test by using original
        probability.
        * gcc.dg/tree-ssa/ipa-split-5.c: Ditto.
        * gcc.dg/tree-ssa/ipa-split-6.c: Ditto.

--This li (t)ene, and those below, will be ignored--

M    gcc/params.def
M    gcc/predict.def
M    gcc/ChangeLog
M    gcc/testsuite/gcc.dg/tree-ssa/ipa-split-5.c
M    gcc/testsuite/gcc.dg/tree-ssa/ipa-split-6.c
M    gcc/testsuite/gcc.target/i386/cold-attribute-2.c
M    gcc/predict.c
M    gcc/doc/invoke.texi


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203167 138bc75d-0d04-0410-961f-82ee72b054a4
        * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
        the candidate of builtin_expect such that we should fix the 
        size/time estimation.
        (estimate_function_body_sizes): Do the acutally size/time fix-up
        for builtin_expect.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203168 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-03  Wei Mi  <wmi@google.com>

        * lra-constraints.c (insert_move_for_subreg): New function
        extracted from simplify_operand_subreg.
        (simplify_operand_subreg): Add reload for paradoxical subreg.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203169 138bc75d-0d04-0410-961f-82ee72b054a4
	* i386.c (ix86_option_override_internal): Do not enable
	accumulate-outgoing-args when producing unwind info.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203171 138bc75d-0d04-0410-961f-82ee72b054a4
	* i386.c (ix86_issue_rate): Pentium4, Nocona has issue rate of 2.
	Core2, Corei7 and Haswell has issue rate of 4.
	(ix86_adjust_cost): Remove ATOM case; fix core2/corei7/Haswell case.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203172 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-03  Easwaran Raman  <eraman@google.com>

        PR c++/33911
        * parser.c (cp_parser_init_declarator): Do not drop attributes
        of template member functions.

2013-10-03  Easwaran Raman  <eraman@google.com>

        PR c++/33911
        * g++.dg/ext/attribute47.C: New.




git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203174 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-03  John Woolverton  <jdwoolverton@gmail.com>

	PR libstdc++/58604
	* include/std/vector: Fix garbled line in HP Copyright.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203187 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-03  Tim Shen  <timshen91@gmail.com>

	* include/bits/regex_executor.tcc (_DFSExecutor<>::_M_dfs): Fix wrong
	backup variable initialization.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203190 138bc75d-0d04-0410-961f-82ee72b054a4
	* sr.po: Update.


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

	PR c++/58584
	* decl2.c (save_template_attributes): Handle error_mark_node as
	*attr_p argument.
	(cp_check_const_attributes): Likewise for attributes.
	* parser.c (cp_parser_std_attribute_spec): When alignas_expr is an
	error_mark_node call cp_parser_skip_to_end_of_statement.

/testsuite
2013-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/58584
	* g++.dg/cpp0x/gen-attrs-55.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203193 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-04  Marc Glisse  <marc.glisse@inria.fr>

	PR c++/19476
gcc/cp/
	* decl.c (cxx_init_decl_processing): Set operator_new_flag.

gcc/testsuite/
	* g++.dg/tree-ssa/pr19476-5.C: New file.
	* g++.dg/tree-ssa/pr19476-1.C: Mention pr19476-5.C.


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

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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203198 138bc75d-0d04-0410-961f-82ee72b054a4
	* ChangeLog: Some further fixes.


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


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203205 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/
	* dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
        discarding a location list expression (or a piece of one).


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203206 138bc75d-0d04-0410-961f-82ee72b054a4
compiler: Use backend interface for temporary reference expressions.

	* go-gcc.cc (Backend::convert_expression): New function.


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