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
aff2a12b
Commit
aff2a12b
authored
Aug 24, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(parmlist_2): Give error for function with only ELLIPSIS as an
argument. From-SVN: r7969
parent
dc5627bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/c-parse.in
+7
-2
No files found.
gcc/c-parse.in
View file @
aff2a12b
...
...
@@ -2062,8 +2062,13 @@ parmlist_2: /* empty */
{
$$
=
get_parm_info
(
0
);
}
|
ELLIPSIS
{
$$
=
get_parm_info
(
0
);
if
(
pedantic
)
pedwarn
(
"ANSI C requires a named argument before `...'"
);
/* Gcc used to allow this as an extension. However, it does
not work for all targets, and thus has been disabled.
Also, since func (...) and func () are indistinguishable,
it caused problems with the code in expand_builtin which
tries to verify that BUILT_IN_NEXT_ARG is being used
correctly. */
error
(
"ANSI C requires a named argument before `...'"
);
}
|
parms
{
$$
=
get_parm_info
(
1
);
}
...
...
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