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
76ffb3a0
Commit
76ffb3a0
authored
Jun 11, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(variable_size): Do nothing if SIZE is constant.
From-SVN: r9925
parent
ee3ac81d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/stor-layout.c
+3
-2
No files found.
gcc/stor-layout.c
View file @
76ffb3a0
...
...
@@ -80,7 +80,7 @@ get_pending_sizes ()
return
chain
;
}
/* Given a size SIZE that
isn't
constant, return a SAVE_EXPR
/* Given a size SIZE that
may not be a
constant, return a SAVE_EXPR
to serve as the actual size-expression for a type or decl. */
tree
...
...
@@ -90,7 +90,8 @@ variable_size (size)
/* If the language-processor is to take responsibility for variable-sized
items (e.g., languages which have elaboration procedures like Ada),
just return SIZE unchanged. Likewise for self-referential sizes. */
if
(
global_bindings_p
()
<
0
||
contains_placeholder_p
(
size
))
if
(
TREE_CONSTANT
(
size
)
||
global_bindings_p
()
<
0
||
contains_placeholder_p
(
size
))
return
size
;
size
=
save_expr
(
size
);
...
...
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