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
eabb9ed0
Commit
eabb9ed0
authored
May 20, 2001
by
Richard Kenner
Committed by
Richard Kenner
May 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stmt.c (expand_decl): Set mode, alignment, and sizes for CONST_DECL.
From-SVN: r42360
parent
d9214e53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
gcc/ChangeLog
+4
-0
gcc/stmt.c
+15
-5
No files found.
gcc/ChangeLog
View file @
eabb9ed0
Sun
May
20
16
:
39
:
24
2001
Richard
Kenner
<
kenner
@vlsi1
.
ultra
.
nyu
.
edu
>
*
stmt
.
c
(
expand_decl
)
:
Set
mode
,
alignment
,
and
sizes
for
CONST_DECL
.
2001
-
05
-
20
Richard
Henderson
<
rth
@redhat
.
com
>
2001
-
05
-
20
Richard
Henderson
<
rth
@redhat
.
com
>
*
sched
-
deps
.
c
(
sched_analyze_insn
)
:
Force
volatile
memory
reads
*
sched
-
deps
.
c
(
sched_analyze_insn
)
:
Force
volatile
memory
reads
...
...
gcc/stmt.c
View file @
eabb9ed0
...
@@ -3749,14 +3749,24 @@ expand_decl (decl)
...
@@ -3749,14 +3749,24 @@ expand_decl (decl)
type
=
TREE_TYPE
(
decl
);
type
=
TREE_TYPE
(
decl
);
/* Only automatic variables need any expansion done.
/* For a CONST_DECL, set mode, alignment, and sizes from those of the
Static and external variables, and external functions,
type in case this node is used in a reference. */
will be handled by `assemble_variable' (called from finish_decl).
if
(
TREE_CODE
(
decl
)
==
CONST_DECL
)
TYPE_DECL and CONST_DECL require nothing.
{
PARM_DECLs are handled in `assign_parms'. */
DECL_MODE
(
decl
)
=
TYPE_MODE
(
type
);
DECL_ALIGN
(
decl
)
=
TYPE_ALIGN
(
type
);
DECL_SIZE
(
decl
)
=
TYPE_SIZE
(
type
);
DECL_SIZE_UNIT
(
decl
)
=
TYPE_SIZE_UNIT
(
type
);
return
;
}
/* Otherwise, only automatic variables need any expansion done. Static and
external variables, and external functions, will be handled by
`assemble_variable' (called from finish_decl). TYPE_DECL requires
nothing. PARM_DECLs are handled in `assign_parms'. */
if
(
TREE_CODE
(
decl
)
!=
VAR_DECL
)
if
(
TREE_CODE
(
decl
)
!=
VAR_DECL
)
return
;
return
;
if
(
TREE_STATIC
(
decl
)
||
DECL_EXTERNAL
(
decl
))
if
(
TREE_STATIC
(
decl
)
||
DECL_EXTERNAL
(
decl
))
return
;
return
;
...
...
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