This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: middle-end/9997: Coelesce stack slots for disjoint scopes.
- From: Jim Wilson <wilson at tuliptree dot org>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 30 Apr 2003 06:26:01 -0000
- Subject: Re: middle-end/9997: Coelesce stack slots for disjoint scopes.
- Reply-to: Jim Wilson <wilson at tuliptree dot org>
The following reply was made to PR middle-end/9997; it has been noted by GNATS.
From: Jim Wilson <wilson@tuliptree.org>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: middle-end/9997: Coelesce stack slots for disjoint scopes.
Date: 29 Apr 2003 23:19:28 -0400
While looking at this, I noticed that the var_temp_slot_level stuff
seems to be broken. In expand_expr, case SAVE_EXPR, we call assign_temp
with keep == 3. This ends up using var_temp_slot_level. However, there
is no place in the compiler that ever sets var_temp_slot_level. It is
initialized to 0, so all SAVE_TEMP temps end up at level 0, which means
they live until the end of the function. This can't be right. I
suspect this was also broken by the functions-as-trees stuff. I haven't
looked into this yet. We can perhaps open a new PR for this problem.
Jim