tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE from parent_var.

2006-03-28  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
	from parent_var.

From-SVN: r112451
This commit is contained in:
Daniel Berlin 2006-03-28 14:36:56 +00:00 committed by Daniel Berlin
parent df10833162
commit c245c134da
3 changed files with 29 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-03-28 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
from parent_var.
2006-03-27 Roger Sayle <roger@eyesopen.com>
PR middle-end/22524

View file

@ -0,0 +1,23 @@
extern void abort (void);
struct delay_block {
struct delay_block *succ;
};
static struct delay_block Timer_Queue;
struct delay_block* time_enqueue (struct delay_block *d)
{
struct delay_block *q = Timer_Queue.succ;
d->succ = (void *)0;
return Timer_Queue.succ;
}
int main(void)
{
Timer_Queue.succ = &Timer_Queue;
if (time_enqueue (&Timer_Queue) != (void*)0)
abort ();
return 0;
}

View file

@ -2853,6 +2853,7 @@ create_sft (tree var, tree field, unsigned HOST_WIDE_INT offset,
TREE_PUBLIC (subvar) = TREE_PUBLIC (var);
TREE_STATIC (subvar) = TREE_STATIC (var);
TREE_READONLY (subvar) = TREE_READONLY (var);
TREE_ADDRESSABLE (subvar) = TREE_ADDRESSABLE (var);
/* Add the new variable to REFERENCED_VARS. */
ann = get_var_ann (subvar);