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
88a5cdb8
Commit
88a5cdb8
authored
Jun 09, 1997
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
From-SVN: r14210
parent
a112a4d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
gcc/fold-const.c
+13
-6
No files found.
gcc/fold-const.c
View file @
88a5cdb8
...
@@ -5498,14 +5498,21 @@ fold (expr)
...
@@ -5498,14 +5498,21 @@ fold (expr)
return
pedantic_non_lvalue
(
convert
(
type
,
arg1
));
return
pedantic_non_lvalue
(
convert
(
type
,
arg1
));
case
LE_EXPR
:
case
LE_EXPR
:
case
LT_EXPR
:
case
LT_EXPR
:
return
pedantic_non_lvalue
/* In C++ a ?: expression can be an lvalue, so we can't
(
convert
(
type
,
(
fold
(
build
(
MIN_EXPR
,
comp_type
,
do this; we would lose the distinction between
comp_op0
,
comp_op1
)))));
LT and LE. */
if
(
pedantic_lvalues
)
return
pedantic_non_lvalue
(
convert
(
type
,
(
fold
(
build
(
MIN_EXPR
,
comp_type
,
comp_op0
,
comp_op1
)))));
break
;
case
GE_EXPR
:
case
GE_EXPR
:
case
GT_EXPR
:
case
GT_EXPR
:
return
pedantic_non_lvalue
if
(
pedantic_lvalues
)
(
convert
(
type
,
fold
(
build
(
MAX_EXPR
,
comp_type
,
return
pedantic_non_lvalue
comp_op0
,
comp_op1
))));
(
convert
(
type
,
fold
(
build
(
MAX_EXPR
,
comp_type
,
comp_op0
,
comp_op1
))));
break
;
}
}
}
}
...
...
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