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
05ca5990
Commit
05ca5990
authored
Sep 17, 1999
by
Gavin Romig-Koch
Committed by
Gavin Romig-Koch
Sep 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (operand_equal_p): Pay attention to side effects.
From-SVN: r29483
parent
3f94eee6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+6
-0
No files found.
gcc/ChangeLog
View file @
05ca5990
Fri
Sep
17
15
:
05
:
27
1999
Gavin
Romig
-
Koch
<
gavin
@cygnus
.
com
>
*
fold
-
const
.
c
(
operand_equal_p
)
:
Pay
attention
to
side
effects
.
Fri
Sep
17
11
:
14
:
17
1999
Jason
Merrill
<
jason
@yorick
.
cygnus
.
com
>
*
libgcc2
.
c
(
L_exit
)
:
Check
for
ON_EXIT
,
not
HAVE_ON_EXIT
.
...
...
gcc/fold-const.c
View file @
05ca5990
...
...
@@ -2183,6 +2183,12 @@ operand_equal_p (arg0, arg1, only_const)
TREE_OPERAND
(
arg1
,
0
),
0
));
case
'r'
:
/* If either of the pointer (or reference) expressions we are dereferencing
contain a side effect, these cannot be equal. */
if
(
TREE_SIDE_EFFECTS
(
arg0
)
||
TREE_SIDE_EFFECTS
(
arg1
))
return
0
;
switch
(
TREE_CODE
(
arg0
))
{
case
INDIRECT_REF
:
...
...
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