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
0657c69c
Commit
0657c69c
authored
Nov 19, 2000
by
Mark Mitchell
Committed by
Mark Mitchell
Nov 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokparms): Don't create parameters of `void' type.
From-SVN: r37553
parent
7f0614d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+6
-4
No files found.
gcc/cp/ChangeLog
View file @
0657c69c
2000-11-18 Mark Mitchell <mark@codesourcery.com>
* decl.c (grokparms): Don't create parameters of `void' type.
2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
* lex.c (mark_impl_file_chain): Delete.
* lex.c (mark_impl_file_chain): Delete.
...
...
gcc/cp/decl.c
View file @
0657c69c
...
@@ -11989,7 +11989,7 @@ grokparms (first_parm)
...
@@ -11989,7 +11989,7 @@ grokparms (first_parm)
for
(
parm
=
first_parm
;
parm
!=
NULL_TREE
;
parm
=
chain
)
for
(
parm
=
first_parm
;
parm
!=
NULL_TREE
;
parm
=
chain
)
{
{
tree
type
=
NULL_TREE
,
list_node
=
parm
;
tree
type
=
NULL_TREE
;
register
tree
decl
=
TREE_VALUE
(
parm
);
register
tree
decl
=
TREE_VALUE
(
parm
);
tree
init
=
TREE_PURPOSE
(
parm
);
tree
init
=
TREE_PURPOSE
(
parm
);
...
@@ -12022,6 +12022,10 @@ grokparms (first_parm)
...
@@ -12022,6 +12022,10 @@ grokparms (first_parm)
/* this is a parmlist of `(void)', which is ok. */
/* this is a parmlist of `(void)', which is ok. */
break
;
break
;
incomplete_type_error
(
decl
,
type
);
incomplete_type_error
(
decl
,
type
);
/* It's not a good idea to actually create parameters of
type `void'; other parts of the compiler assume that a
void type terminates the parameter list. */
TREE_TYPE
(
decl
)
=
error_mark_node
;
}
}
/* Top-level qualifiers on the parameters are
/* Top-level qualifiers on the parameters are
...
@@ -12069,9 +12073,7 @@ grokparms (first_parm)
...
@@ -12069,9 +12073,7 @@ grokparms (first_parm)
TREE_CHAIN
(
decl
)
=
decls
;
TREE_CHAIN
(
decl
)
=
decls
;
decls
=
decl
;
decls
=
decl
;
list_node
=
tree_cons
(
init
,
type
,
NULL_TREE
);
result
=
tree_cons
(
init
,
type
,
result
);
TREE_CHAIN
(
list_node
)
=
result
;
result
=
list_node
;
}
}
decls
=
nreverse
(
decls
);
decls
=
nreverse
(
decls
);
result
=
nreverse
(
result
);
result
=
nreverse
(
result
);
...
...
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