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
2409cb37
Commit
2409cb37
authored
Oct 02, 2003
by
Kelley Cook
Committed by
R. Kelley Cook
Oct 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/tmp/cvs001644
From-SVN: r72005
parent
9a032f82
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
5 deletions
+28
-5
gcc/ChangeLog
+5
-0
gcc/c-parse.in
+4
-1
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/Wold-style-definition-2.c
+10
-0
gcc/testsuite/gcc.dg/wtr-func-def-1.c
+4
-4
No files found.
gcc/ChangeLog
View file @
2409cb37
2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
PR C/12466
* c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/xm-iris5.h: Remove, unnecessary.
...
...
gcc/c-parse.in
View file @
2409cb37
...
...
@@ -2561,13 +2561,16 @@ parmlist_2: /* empty */
tries to verify that BUILT_IN_NEXT_ARG is being used
correctly. */
error
(
"ISO C requires a named argument before `...'"
);
parsing_iso_function_signature
=
true
;
}
|
parms
{
$$
=
get_parm_info
(
1
);
parsing_iso_function_signature
=
true
;
}
|
parms
','
ELLIPSIS
{
$$
=
get_parm_info
(
0
);
}
{
$$
=
get_parm_info
(
0
);
parsing_iso_function_signature
=
true
;
}
;
parms
:
...
...
gcc/testsuite/ChangeLog
View file @
2409cb37
2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
* gcc.dg/Wold-style-definition-2.c: New testcase.
* gcc.dg/wtr-func-def-1.c: Modify to reflect new warning.
2003-09-29 Richard Henderson <rth@redhat.com>
* g++.dg/init/array10.C: Add dg-options.
...
...
gcc/testsuite/gcc.dg/Wold-style-definition-2.c
0 → 100644
View file @
2409cb37
/* PR c/12466
Test for not warning about ellipsises with -Wold-style-definition. */
/* Origin: Kelley Cook <kcook@gcc.gnu.org> */
/* { dg-do compile } */
/* { dg-options "-Wold-style-definition" } */
void
bar1
(
...
)
{}
/* { dg-error "ISO C requires a named argument" } */
void
bar2
(
int
a
,
...
)
{}
gcc/testsuite/gcc.dg/wtr-func-def-1.c
View file @
2409cb37
...
...
@@ -143,21 +143,21 @@ f_impl3(int f)
return
0
;
}
/* Test
that we don't warn about
stdarg functions. */
/* Test stdarg functions. */
f_stdarg1
(
const
char
*
s
,
...)
{
{
/* { dg-warning "traditional C rejects ISO C style" } */
return
0
;
}
void
f_stdarg2
(
const
char
*
s
,
...)
{
{
/* { dg-warning "traditional C rejects ISO C style" } */
return
;
}
extern
void
f_stdarg3
(
const
char
*
,
...);
void
f_stdarg3
(
const
char
*
s
,
...)
{
{
/* { dg-warning "traditional C rejects ISO C style" } */
return
;
}
...
...
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