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
4d9af632
Commit
4d9af632
authored
Dec 15, 1999
by
Jason Merrill
Committed by
Jason Merrill
Dec 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stmt.c (expand_decl): Expand upper bound of a dynamic array.
From-SVN: r30962
parent
8890f3d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
gcc/ChangeLog
+4
-0
gcc/stmt.c
+6
-0
No files found.
gcc/ChangeLog
View file @
4d9af632
1999
-
12
-
15
Jason
Merrill
<
jason
@casey
.
cygnus
.
com
>
*
stmt
.
c
(
expand_decl
)
:
Expand
upper
bound
of
a
dynamic
array
.
1999
-
12
-
15
Jakub
Jelinek
<
jakub
@redhat
.
com
>
*
expr
.
c
(
emit_group_load
)
:
Use
dst
mode
if
src
is
VOIDmode
.
...
...
gcc/stmt.c
View file @
4d9af632
...
...
@@ -3817,6 +3817,12 @@ expand_decl (decl)
stack_block_stack
=
thisblock
;
}
/* In function-at-a-time mode, variable_size doesn't expand this,
so do it now. */
if
(
TREE_CODE
(
type
)
==
ARRAY_TYPE
&&
TYPE_DOMAIN
(
type
))
expand_expr
(
TYPE_MAX_VALUE
(
TYPE_DOMAIN
(
type
)),
const0_rtx
,
VOIDmode
,
0
);
/* Compute the variable's size, in bytes. */
size
=
expand_expr
(
size_binop
(
CEIL_DIV_EXPR
,
DECL_SIZE
(
decl
),
...
...
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