diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-02 12:41:08 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-02 12:41:08 +0000 |
commit | 29feb86740c66e440c10f33fcd4aea36576631ac (patch) | |
tree | 1694f7e36c9401df62c8941c4af4cd07410647b6 /gcc/testsuite/gcc.dg | |
parent | 81d31c3011603911d1b5cdcb3ebd106789ad384e (diff) | |
download | gcc-29feb86740c66e440c10f33fcd4aea36576631ac.tar.gz |
2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23547
* tree-nested.c (struct var_map_elt): Mark with GTY.
(struct nesting_info): Mark with GTY. Mark var_map's param is struct
var_map_elt.
(lookup_field_for_decl): Allocate new element in GC memory.
(lookup_tramp_for_decl): Likewise.
(convert_nl_goto_reference): Likewise
(create_nesting_tree): Allocate info in GC memory. Likewise for info->var_map.
(free_nesting_tree): Free with ggc_free instead of free.
(root): New static variable.
(lower_nested_functions): Remove root as local variable. And zero out root at the end of the function.
2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23547
* gcc.dg/pr23547.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr23547.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr23547.c b/gcc/testsuite/gcc.dg/pr23547.c new file mode 100644 index 00000000000..210fae7ef85 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr23547.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" } */ +void foo() +{ + void bar() + { + bar(); + } +} + +void foo1(int i) +{ + void bar (char c[1][i]) { } +} |