diff options
author | meheff <meheff@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-23 18:06:42 +0000 |
---|---|---|
committer | meheff <meheff@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-23 18:06:42 +0000 |
commit | f74ea1c2a9293d0fc474e429b2728f348c53a8e9 (patch) | |
tree | 617e016549617abef28a5f2414f2c7309caae53b /gcc/common.opt | |
parent | 2339767f2e6796590081d9a2ab2de4dca1ed2a68 (diff) | |
download | gcc-f74ea1c2a9293d0fc474e429b2728f348c53a8e9.tar.gz |
2011-08-23 Mark Heffernan <meheff@google.com>
PR middle-end/38509
* common.opt (Wfree-nonheap-object): New option.
* doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
* builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
to warning.
(expand_builtin): Make warning conditional.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 63331d30ecc..ba3e254dd14 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -543,6 +543,10 @@ Wframe-larger-than= Common RejectNegative Joined UInteger -Wframe-larger-than=<number> Warn if a function's stack frame requires more than <number> bytes +Wfree-nonheap-object +Common Var(warn_free_nonheap_object) Init(1) Warning +Warn when attempting to free a non-heap object + Winline Common Var(warn_inline) Warning Warn when an inlined function cannot be inlined |