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
cbcafd35
Commit
cbcafd35
authored
Apr 14, 2003
by
Olivier Hainque
Committed by
Richard Kenner
Apr 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (fold): Reorder tests for conditional expressions.
From-SVN: r65590
parent
9ceca302
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
gcc/ChangeLog
+2
-0
gcc/fold-const.c
+8
-8
No files found.
gcc/ChangeLog
View file @
cbcafd35
2003-04-14 Olivier Hainque <hainque@act-europe.fr>
* fold-const.c (fold): Reorder tests for conditional expressions.
* expr.c (highest_pow2_factor): Return unsigned.
* expr.h (offset_address): Likewise.
* emit-rtl.c (offset_address): POW2 argument now unsigned.
...
...
gcc/fold-const.c
View file @
cbcafd35
...
...
@@ -5063,6 +5063,14 @@ fold (expr)
fold
(
build1
(
code
,
type
,
integer_one_node
)),
fold
(
build1
(
code
,
type
,
integer_zero_node
))));
}
else
if
(
TREE_CODE_CLASS
(
code
)
==
'<'
&&
TREE_CODE
(
arg0
)
==
COMPOUND_EXPR
)
return
build
(
COMPOUND_EXPR
,
type
,
TREE_OPERAND
(
arg0
,
0
),
fold
(
build
(
code
,
type
,
TREE_OPERAND
(
arg0
,
1
),
arg1
)));
else
if
(
TREE_CODE_CLASS
(
code
)
==
'<'
&&
TREE_CODE
(
arg1
)
==
COMPOUND_EXPR
)
return
build
(
COMPOUND_EXPR
,
type
,
TREE_OPERAND
(
arg1
,
0
),
fold
(
build
(
code
,
type
,
arg0
,
TREE_OPERAND
(
arg1
,
1
))));
else
if
(
TREE_CODE_CLASS
(
code
)
==
'2'
||
TREE_CODE_CLASS
(
code
)
==
'<'
)
{
...
...
@@ -5098,14 +5106,6 @@ fold (expr)
fold_binary_op_with_conditional_arg
(
code
,
type
,
arg0
,
arg1
,
/*cond_first_p=*/
1
);
}
else
if
(
TREE_CODE_CLASS
(
code
)
==
'<'
&&
TREE_CODE
(
arg0
)
==
COMPOUND_EXPR
)
return
build
(
COMPOUND_EXPR
,
type
,
TREE_OPERAND
(
arg0
,
0
),
fold
(
build
(
code
,
type
,
TREE_OPERAND
(
arg0
,
1
),
arg1
)));
else
if
(
TREE_CODE_CLASS
(
code
)
==
'<'
&&
TREE_CODE
(
arg1
)
==
COMPOUND_EXPR
)
return
build
(
COMPOUND_EXPR
,
type
,
TREE_OPERAND
(
arg1
,
0
),
fold
(
build
(
code
,
type
,
arg0
,
TREE_OPERAND
(
arg1
,
1
))));
switch
(
code
)
{
...
...
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