diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-13 01:14:17 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-13 01:14:17 +0000 |
commit | 243ec9ecc11b80207920b18994242862b0f3669c (patch) | |
tree | c6b89a94e75caae3ef99906bbbd22df97b1f313c /gcc/alias.c | |
parent | 03835392d29616a1db6c52b615d5b1427fe328f6 (diff) | |
download | gcc-243ec9ecc11b80207920b18994242862b0f3669c.tar.gz |
* alias.c (new_alias_set): Construct the alias_set varray.
(init_alias_once): Don't do it here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75779 138bc75d-0d04-0410-961f-82ee72b054a4
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 6c5f73bc924..0cdc32cdeaf 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 |