Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
387e854a
Commit
387e854a
authored
May 06, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(record_constant): Properly make the header of a struct
constant_descriptor. From-SVN: r4361
parent
ab6155b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
gcc/varasm.c
+8
-5
No files found.
gcc/varasm.c
View file @
387e854a
/* Output variables, constants and external declarations, for GNU compiler.
/* 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.
This file is part of GNU CC.
...
@@ -1818,11 +1818,14 @@ static struct constant_descriptor *
...
@@ -1818,11 +1818,14 @@ static struct constant_descriptor *
record_constant
(
exp
)
record_constant
(
exp
)
tree
exp
;
tree
exp
;
{
{
struct
constant_descriptor
*
ptr
=
0
;
struct
constant_descriptor
*
next
=
0
;
int
buf
;
char
*
label
=
0
;
obstack_grow
(
&
permanent_obstack
,
&
ptr
,
sizeof
ptr
);
/* Make a struct constant_descriptor. The first two pointers will
obstack_grow
(
&
permanent_obstack
,
&
buf
,
sizeof
buf
);
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
);
record_constant_1
(
exp
);
return
(
struct
constant_descriptor
*
)
obstack_finish
(
&
permanent_obstack
);
return
(
struct
constant_descriptor
*
)
obstack_finish
(
&
permanent_obstack
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment