aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorBernardo Innocenti <bernie@develer.com>2004-07-25 22:43:23 +0200
committerBernardo Innocenti <bernie@gcc.gnu.org>2004-07-25 22:43:23 +0200
commit5d038c4cb11480bb8ee68bdc71846a0abfe11f02 (patch)
treed0ebdb183f6e1572fbcf9e7c4fd5488f5016e704 /gcc/c-common.c
parentb12a648242a3b58bfa7a3e2d24c9f7404ab35df0 (diff)
downloadgcc-5d038c4cb11480bb8ee68bdc71846a0abfe11f02.zip
gcc-5d038c4cb11480bb8ee68bdc71846a0abfe11f02.tar.gz
gcc-5d038c4cb11480bb8ee68bdc71846a0abfe11f02.tar.bz2
bitmap.c: Use type-safe memory allocation macros from libiberty.
* bitmap.c: Use type-safe memory allocation macros from libiberty. * c-common.c: Likewise. * c-decl.c: Likewise. * c-lang.c: Likewise. * c-lex.c: Likewise. * c-opts.c: Likewise. * c-parse.in: Likewise. * c-typeck.c: Likewise. * genconditions.c: Likewise. * gengtype-lex.l: Likewise. * gengtype-yacc.y: Likewise. * gengtype.c: Likewise. * genmodes.c: Likewise. * gensupport.c: Likewise. * read-rtl.c: Likewise. * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to htab_find_slot(). From-SVN: r85163
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 12fbb11..2452036 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -1051,7 +1051,7 @@ static struct tlist *
new_tlist (struct tlist *next, tree t, tree writer)
{
struct tlist *l;
- l = obstack_alloc (&tlist_obstack, sizeof *l);
+ l = XOBNEW (&tlist_obstack, struct tlist);
l->next = next;
l->expr = t;
l->writer = writer;
@@ -1322,7 +1322,7 @@ verify_tree (tree x, struct tlist **pbefore_sp, struct tlist **pno_sp,
if (! t)
{
- t = obstack_alloc (&tlist_obstack, sizeof *t);
+ t = XOBNEW (&tlist_obstack, struct tlist_cache);
t->next = save_expr_cache;
t->expr = x;
save_expr_cache = t;