aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2013-10-03 18:13:54 +0200
committerMarc Glisse <glisse@gcc.gnu.org>2013-10-03 16:13:54 +0000
commit2284b03444d6845ce6402db37f4ec43f6c755f77 (patch)
tree626a1783dbadedeb04e9dc7b74807b9ad23cc8c7 /gcc/common.opt
parent0609bdf2114919b570e7a3c4ab273fdf16262a4b (diff)
downloadgcc-2284b03444d6845ce6402db37f4ec43f6c755f77.zip
gcc-2284b03444d6845ce6402db37f4ec43f6c755f77.tar.gz
gcc-2284b03444d6845ce6402db37f4ec43f6c755f77.tar.bz2
re PR c++/19476 (Missed null checking elimination with new)
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. From-SVN: r203163
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index c2b3d35..1f11fcd 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -913,6 +913,10 @@ fcheck-data-deps
Common Report Var(flag_check_data_deps)
Compare the results of several data dependence analyzers.
+fcheck-new
+Common Var(flag_check_new)
+Check the return value of new in C++
+
fcombine-stack-adjustments
Common Report Var(flag_combine_stack_adjustments) Optimization
Looks for opportunities to reduce stack adjustments and stack references.