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
3771b9b2
Commit
3771b9b2
authored
Oct 02, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_decl_rtl): Set TREE_SIDE_EFFECTS on global if -fvolatile-global.
From-SVN: r5559
parent
3cd252c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
gcc/varasm.c
+10
-3
No files found.
gcc/varasm.c
View file @
3771b9b2
...
...
@@ -468,10 +468,17 @@ make_decl_rtl (decl, asmspec, top_level)
DECL_RTL
(
decl
)
=
gen_rtx
(
MEM
,
DECL_MODE
(
decl
),
gen_rtx
(
SYMBOL_REF
,
Pmode
,
name
));
if
(
TREE_THIS_VOLATILE
(
decl
)
||
(
flag_volatile_global
&&
TREE_CODE
(
decl
)
==
VAR_DECL
&&
TREE_PUBLIC
(
decl
)))
/* If this variable is to be treated as volatile, show its
tree node has side effects. If it has side effects, either
because of this test or from TREE_THIS_VOLATILE also
being set, show the MEM is volatile. */
if
(
flag_volatile_global
&&
TREE_CODE
(
decl
)
==
VAR_DECL
&&
TREE_PUBLIC
(
decl
))
TREE_SIDE_EFFECTS
(
decl
)
=
1
;
if
(
TREE_SIDE_EFFECTS
(
decl
))
MEM_VOLATILE_P
(
DECL_RTL
(
decl
))
=
1
;
if
(
TREE_READONLY
(
decl
))
RTX_UNCHANGING_P
(
DECL_RTL
(
decl
))
=
1
;
MEM_IN_STRUCT_P
(
DECL_RTL
(
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