diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-07-31 10:02:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-07-31 10:02:49 +0200 |
commit | f9555f402caf35c8b1065daaebc361b753f025a2 (patch) | |
tree | f01ea79c042dfd15dfdd549c69c554a94dd8b22a /gcc/ada | |
parent | 1e1d38871b1b64c4480e08179ebce9efc2161a01 (diff) | |
download | gcc-f9555f402caf35c8b1065daaebc361b753f025a2.zip gcc-f9555f402caf35c8b1065daaebc361b753f025a2.tar.gz gcc-f9555f402caf35c8b1065daaebc361b753f025a2.tar.bz2 |
re PR c/36970 (GCC should display a warning when trying to free a static array)
PR c/36970
* builtins.c (maybe_emit_free_warning): New function.
(expand_builtin): Process BUILT_IN_FREE even at -O0. Call
maybe_emit_free_warning for BUILT_IN_FREE.
* gcc.dg/free-1.c: New test.
* gcc.dg/free-2.c: New test.
From-SVN: r138362
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions