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
870cc33b
Commit
870cc33b
authored
Feb 16, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build_indirect_ref): Avoid *& short-cut if -fvolatile.
From-SVN: r3475
parent
a73f14a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gcc/c-typeck.c
+3
-0
No files found.
gcc/c-typeck.c
View file @
870cc33b
...
@@ -1109,7 +1109,9 @@ build_indirect_ref (ptr, errorstring)
...
@@ -1109,7 +1109,9 @@ build_indirect_ref (ptr, errorstring)
register
tree
type
=
TREE_TYPE
(
pointer
);
register
tree
type
=
TREE_TYPE
(
pointer
);
if
(
TREE_CODE
(
type
)
==
POINTER_TYPE
)
if
(
TREE_CODE
(
type
)
==
POINTER_TYPE
)
{
if
(
TREE_CODE
(
pointer
)
==
ADDR_EXPR
if
(
TREE_CODE
(
pointer
)
==
ADDR_EXPR
&&
!
flag_volatile
&&
(
TREE_TYPE
(
TREE_OPERAND
(
pointer
,
0
))
&&
(
TREE_TYPE
(
TREE_OPERAND
(
pointer
,
0
))
==
TREE_TYPE
(
type
)))
==
TREE_TYPE
(
type
)))
return
TREE_OPERAND
(
pointer
,
0
);
return
TREE_OPERAND
(
pointer
,
0
);
...
@@ -1140,6 +1142,7 @@ build_indirect_ref (ptr, errorstring)
...
@@ -1140,6 +1142,7 @@ build_indirect_ref (ptr, errorstring)
TREE_THIS_VOLATILE
(
ref
)
=
TYPE_VOLATILE
(
t
)
||
flag_volatile
;
TREE_THIS_VOLATILE
(
ref
)
=
TYPE_VOLATILE
(
t
)
||
flag_volatile
;
return
ref
;
return
ref
;
}
}
}
else
if
(
TREE_CODE
(
pointer
)
!=
ERROR_MARK
)
else
if
(
TREE_CODE
(
pointer
)
!=
ERROR_MARK
)
error
(
"invalid type argument of `%s'"
,
errorstring
);
error
(
"invalid type argument of `%s'"
,
errorstring
);
return
error_mark_node
;
return
error_mark_node
;
...
...
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