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
bf0add70
Commit
bf0add70
authored
Oct 11, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stmt): Don't call default_conversion on top-level expressions.
From-SVN: r5725
parent
f1a2b955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
gcc/c-parse.in
+7
-0
No files found.
gcc/c-parse.in
View file @
bf0add70
...
@@ -1648,11 +1648,18 @@ stmt:
...
@@ -1648,11 +1648,18 @@ stmt:
|
expr
';'
|
expr
';'
{
stmt_count
++
;
{
stmt_count
++
;
emit_line_note
(
$
<
filename
>-
1
,
$
<
lineno
>
0
);
emit_line_note
(
$
<
filename
>-
1
,
$
<
lineno
>
0
);
/* It appears that this should not be done--that a non-lvalue array
shouldn't get an error if the value isn't used.
Section 3.2.2.1 says that an array lvalue gets converted to a pointer
if it appears as a top-level expression,
but says nothing about non-lvalue arrays. */
#if 0
/* Call default_conversion to get an error
/* Call default_conversion to get an error
on referring to a register array if pedantic. */
on referring to a register array if pedantic. */
if (TREE_CODE (TREE_TYPE ($1)) == ARRAY_TYPE
if (TREE_CODE (TREE_TYPE ($1)) == ARRAY_TYPE
|| TREE_CODE (TREE_TYPE ($1)) == FUNCTION_TYPE)
|| TREE_CODE (TREE_TYPE ($1)) == FUNCTION_TYPE)
$1 = default_conversion ($1);
$1 = default_conversion ($1);
#endif
iterator_expand
(
$
1
);
iterator_expand
(
$
1
);
clear_momentary
();
}
clear_momentary
();
}
|
simple_if
ELSE
|
simple_if
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