This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/38509] Bogus "attempt to free a non-heap object" warning


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38509

--- Comment #4 from Mark Heffernan <meheff at gcc dot gnu.org> 2011-08-23 18:06:48 UTC ---
Author: meheff
Date: Tue Aug 23 18:06:42 2011
New Revision: 178004

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178004
Log:
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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/common.opt
    trunk/gcc/doc/invoke.texi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]