diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-06 17:02:49 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-05-06 17:02:49 +0000 |
commit | 019413b86e764247cfe6143892434b018b3ce2d9 (patch) | |
tree | fad3147fc5e8eeb05f47352afef49971f070f8fc /gcc/varasm.c | |
parent | 780c0afaac209d6e1685b656e9a1eadc5446ea4f (diff) | |
download | gcc-019413b86e764247cfe6143892434b018b3ce2d9.tar.gz |
(record_constant): Properly make the header of a struct
constant_descriptor.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 16bb816aac8..b5fdd0a097f 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1,5 +1,5 @@ /* Output variables, constants and external declarations, for GNU compiler. - Copyright (C) 1987, 1988, 1989, 1992 Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1818,11 +1818,14 @@ static struct constant_descriptor * record_constant (exp) tree exp; { - struct constant_descriptor *ptr = 0; - int buf; + struct constant_descriptor *next = 0; + char *label = 0; - obstack_grow (&permanent_obstack, &ptr, sizeof ptr); - obstack_grow (&permanent_obstack, &buf, sizeof buf); + /* Make a struct constant_descriptor. The first two pointers will + be filled in later. Here we just leave space for them. */ + + obstack_grow (&permanent_obstack, (char *) &next, sizeof next); + obstack_grow (&permanent_obstack, (char *) &label, sizeof label); record_constant_1 (exp); return (struct constant_descriptor *) obstack_finish (&permanent_obstack); } |