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
686deecb
Commit
686deecb
authored
Oct 29, 2001
by
Joseph Myers
Committed by
Joseph Myers
Oct 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-parse.in (expr_no_commas, primary), c-typeck.c
(parser_build_binary_op): Use IS_EXPR_CODE_CLASS. From-SVN: r46619
parent
0db58ea4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
gcc/ChangeLog
+5
-0
gcc/c-parse.in
+3
-6
gcc/c-typeck.c
+3
-6
No files found.
gcc/ChangeLog
View file @
686deecb
2001
-
10
-
29
Joseph
S
.
Myers
<
jsm28
@cam
.
ac
.
uk
>
*
c
-
parse
.
in
(
expr_no_commas
,
primary
),
c
-
typeck
.
c
(
parser_build_binary_op
)
:
Use
IS_EXPR_CODE_CLASS
.
2001
-
10
-
29
David
Edelsohn
<
edelsohn
@gnu
.
org
>
Undo
assemble_name
change
in
earlier
patch
.
...
...
gcc/c-parse.in
View file @
686deecb
...
...
@@ -605,8 +605,7 @@ expr_no_commas:
{
char
class
;
$$
=
build_modify_expr
(
$
1
,
NOP_EXPR
,
$
3
);
class
=
TREE_CODE_CLASS
(
TREE_CODE
(
$$
));
if
(
class
==
'e'
||
class
==
'1'
||
class
==
'2'
||
class
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class
))
C_SET_EXP_ORIGINAL_CODE
(
$$
,
MODIFY_EXPR
);
}
|
expr_no_commas
ASSIGN
expr_no_commas
...
...
@@ -614,8 +613,7 @@ expr_no_commas:
$$
=
build_modify_expr
(
$
1
,
$
2
,
$
3
);
/* This inhibits warnings in truthvalue_conversion. */
class
=
TREE_CODE_CLASS
(
TREE_CODE
(
$$
));
if
(
class
==
'e'
||
class
==
'1'
||
class
==
'2'
||
class
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class
))
C_SET_EXP_ORIGINAL_CODE
(
$$
,
ERROR_MARK
);
}
;
...
...
@@ -663,8 +661,7 @@ primary:
}
|
'('
expr
')'
{
char
class
=
TREE_CODE_CLASS
(
TREE_CODE
(
$
2
));
if
(
class
==
'e'
||
class
==
'1'
||
class
==
'2'
||
class
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class
))
C_SET_EXP_ORIGINAL_CODE
(
$
2
,
ERROR_MARK
);
$$
=
$
2
;
}
|
'('
error
')'
...
...
gcc/c-typeck.c
View file @
686deecb
...
...
@@ -1752,11 +1752,9 @@ parser_build_binary_op (code, arg1, arg2)
enum
tree_code
code1
=
ERROR_MARK
;
enum
tree_code
code2
=
ERROR_MARK
;
if
(
class1
==
'e'
||
class1
==
'1'
||
class1
==
'2'
||
class1
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class1
))
code1
=
C_EXP_ORIGINAL_CODE
(
arg1
);
if
(
class2
==
'e'
||
class2
==
'1'
||
class2
==
'2'
||
class2
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class2
))
code2
=
C_EXP_ORIGINAL_CODE
(
arg2
);
/* Check for cases such as x+y<<z which users are likely
...
...
@@ -1826,8 +1824,7 @@ parser_build_binary_op (code, arg1, arg2)
/* Record the code that was specified in the source,
for the sake of warnings about confusing nesting. */
if
(
class
==
'e'
||
class
==
'1'
||
class
==
'2'
||
class
==
'<'
)
if
(
IS_EXPR_CODE_CLASS
(
class
))
C_SET_EXP_ORIGINAL_CODE
(
result
,
code
);
else
{
...
...
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