re PR middle-end/23547 ([non-unit-at-a-time] ICE with recursive call to nested function)
authorAndrew Pinski <pinskia@physics.uc.edu>
Fri, 2 Sep 2005 12:41:08 +0000 (12:41 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 2 Sep 2005 12:41:08 +0000 (05:41 -0700)
commit9bf777eedf9bb3fe6ae516051d101456636f34e9
tree1694f7e36c9401df62c8941c4af4cd07410647b6
parentb8d7f9febca57fbd2070e4c1c6148ae24f9b19ca
re PR middle-end/23547 ([non-unit-at-a-time] ICE with recursive call to nested function)

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.

From-SVN: r103777
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr23547.c [new file with mode: 0644]
gcc/tree-nested.c