diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-13 02:14:17 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-13 01:14:17 +0000 |
commit | 3416f5c283f7fb5f2e6a6b75674c2645077cfb06 (patch) | |
tree | c6b89a94e75caae3ef99906bbbd22df97b1f313c /gcc/alias.c | |
parent | 451aeff70dbe963aa98ede4203e48c4ac24961a7 (diff) | |
download | gcc-3416f5c283f7fb5f2e6a6b75674c2645077cfb06.zip gcc-3416f5c283f7fb5f2e6a6b75674c2645077cfb06.tar.gz gcc-3416f5c283f7fb5f2e6a6b75674c2645077cfb06.tar.bz2 |
alias.c (new_alias_set): Construct the alias_set varray.
* alias.c (new_alias_set): Construct the alias_set varray.
(init_alias_once): Don't do it here.
From-SVN: r75779
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 6c5f73b..0cdc32c 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -598,7 +598,10 @@ new_alias_set (void) if (flag_strict_aliasing) { - VARRAY_GROW (alias_sets, last_alias_set + 2); + if (!alias_sets) + VARRAY_GENERIC_PTR_INIT (alias_sets, 10, "alias sets"); + else + VARRAY_GROW (alias_sets, last_alias_set + 2); return ++last_alias_set; } else @@ -2672,8 +2675,6 @@ init_alias_once (void) static_reg_base_value[HARD_FRAME_POINTER_REGNUM] = gen_rtx_ADDRESS (Pmode, hard_frame_pointer_rtx); #endif - - VARRAY_GENERIC_PTR_INIT (alias_sets, 10, "alias sets"); } /* Set MEMORY_MODIFIED when X modifies DATA (that is assumed |