aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-01-13 02:14:17 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2004-01-13 01:14:17 +0000
commit3416f5c283f7fb5f2e6a6b75674c2645077cfb06 (patch)
treec6b89a94e75caae3ef99906bbbd22df97b1f313c /gcc
parent451aeff70dbe963aa98ede4203e48c4ac24961a7 (diff)
downloadgcc-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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/alias.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0160a72..b7e8573 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-13 Jan Hubicka <jh@suse.cz>
+
+ * alias.c (new_alias_set): Construct the alias_set varray.
+ (init_alias_once): Don't do it here.
+
2004-01-12 Marc Espie <espie@openbsd.org>
* system.h: handle YYBYACC like YYBISON.
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