public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes
@ 2003-06-29 10:39 debian-gcc at lists dot debian dot org
2003-07-06 1:31 ` [Bug c/11369] " dhazeghi at yahoo dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2003-06-29 10:39 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369
Summary: too relaxed checking with -Wstrict-prototypes
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-linux
GCC host triplet: i386-linux
GCC target triplet: i386-linux
[forwarded from http://bugs.debian.org/197504]
int foo(void);
int foo()
{
return 42;
}
$ gcc -c -Wstrict-prototypes gcc-bug.c
$
Bug submitter expected gcc to raise a warning in line 3, because a function is
declared with an unknown parameter list instead of an empty list.
Instead, line 3 should look like "int foo(void)".
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11369] too relaxed checking with -Wstrict-prototypes
2003-06-29 10:39 [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes debian-gcc at lists dot debian dot org
@ 2003-07-06 1:31 ` dhazeghi at yahoo dot com
2003-07-18 22:55 ` dhazeghi at yahoo dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-06 1:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-06 01:31:34
date| |
Target Milestone|3.4 |---
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-06 01:31 -------
Confirmed with mainline (20030705) and current branch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11369] too relaxed checking with -Wstrict-prototypes
2003-06-29 10:39 [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes debian-gcc at lists dot debian dot org
2003-07-06 1:31 ` [Bug c/11369] " dhazeghi at yahoo dot com
@ 2003-07-18 22:55 ` dhazeghi at yahoo dot com
2003-08-23 21:19 ` cvs-commit at gcc dot gnu dot org
2003-11-20 7:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-18 22:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|i386-linux |
GCC host triplet|i386-linux |
GCC target triplet|*-*-* |
Keywords| |diagnostic
Last reconfirmed|2003-07-06 01:31:34 |2003-07-18 22:55:01
date| |
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-18 22:55 -------
The EDG front-end doesn't get this right either.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11369] too relaxed checking with -Wstrict-prototypes
2003-06-29 10:39 [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes debian-gcc at lists dot debian dot org
2003-07-06 1:31 ` [Bug c/11369] " dhazeghi at yahoo dot com
2003-07-18 22:55 ` dhazeghi at yahoo dot com
@ 2003-08-23 21:19 ` cvs-commit at gcc dot gnu dot org
2003-11-20 7:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-23 21:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-08-23 21:19 -------
Subject: Bug 11369
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hubicka@gcc.gnu.org 2003-08-23 21:18:58
Modified files:
gcc : expr.c ChangeLog
gcc/config/i386: i386.c i386.h i386.md
Log message:
PR target/11369
* i386.c (ix86_expand_carry_flag_compare): Validate operand.
PR target/11031
* i386.c (const_0_to_3_operand, const_0_to_7_operand,
const_0_to_15_operand, const_0_to_255_operand): New predicates.
* i386.h (PREDICATE_CODES): Add these.
* i386.c (pinsrw and pextrw patterns): Use them.
PR target/10984
* i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
PR target/8869
* expr.c (convert_modes): Deal properly with integer to vector
constant conversion.
PR target/8871
* i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expr.c.diff?cvsroot=gcc&r1=1.577&r2=1.578
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.864&r2=2.865
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.c.diff?cvsroot=gcc&r1=1.595&r2=1.596
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.h.diff?cvsroot=gcc&r1=1.350&r2=1.351
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&r1=1.480&r2=1.481
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/11369] too relaxed checking with -Wstrict-prototypes
2003-06-29 10:39 [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2003-08-23 21:19 ` cvs-commit at gcc dot gnu dot org
@ 2003-11-20 7:16 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-20 7:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-20 07:16 -------
This is invalid as the documentation talks about "prototypes" non existant:
Warn about unprototyped function declarations
In this case foo is prototyped.
The flag you want is -Wold-style-definition instead but this only added for 3.4, closing as
fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11369
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-11-20 7:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-29 10:39 [Bug c/11369] New: too relaxed checking with -Wstrict-prototypes debian-gcc at lists dot debian dot org
2003-07-06 1:31 ` [Bug c/11369] " dhazeghi at yahoo dot com
2003-07-18 22:55 ` dhazeghi at yahoo dot com
2003-08-23 21:19 ` cvs-commit at gcc dot gnu dot org
2003-11-20 7:16 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).