public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23161] New: Labels and empty statement warnings
@ 2005-07-31 13:31 neil at gcc dot gnu dot org
2005-07-31 16:42 ` [Bug c/23161] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: neil at gcc dot gnu dot org @ 2005-07-31 13:31 UTC (permalink / raw)
To: gcc-bugs
void foo (void)
{
if (0)
a: ;
}
Compile with -W, there is no warning about the empty statement. Remove the
label and there is. IMO the warning should be independent of whether the
statement is labelled.
--
Summary: Labels and empty statement warnings
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
@ 2005-07-31 16:42 ` pinskia at gcc dot gnu dot org
2005-07-31 18:15 ` phython at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-31 16:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-31 16:42 -------
Confirmed, for some reason on the mainline and 4.0 branch, we ICE with -W, which I am filing under
23165.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |23165
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2005-07-31 16:42:20
date| |
Version|4.1.0 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
2005-07-31 16:42 ` [Bug c/23161] " pinskia at gcc dot gnu dot org
@ 2005-07-31 18:15 ` phython at gcc dot gnu dot org
2005-08-09 4:22 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-07-31 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-07-31 18:12 -------
This is almost the same as PR23165, the same patch fixes this.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |phython at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-31 16:42:20 |2005-07-31 18:12:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
2005-07-31 16:42 ` [Bug c/23161] " pinskia at gcc dot gnu dot org
2005-07-31 18:15 ` phython at gcc dot gnu dot org
@ 2005-08-09 4:22 ` cvs-commit at gcc dot gnu dot org
2005-08-09 4:28 ` phython at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-09 4:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-09 04:21 -------
Subject: Bug 23161
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: phython@gcc.gnu.org 2005-08-09 04:21:26
Modified files:
gcc : ChangeLog c-typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr23165.c
Log message:
2005-08-09 James A. Morrison <phython@gcc.gnu.org>
PR c/23161
PR c/23165
* c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
if the if is really empty.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9684&r2=2.9685
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.474&r2=1.475
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5896&r2=1.5897
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr23165.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-09 4:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-09 4:28 ` phython at gcc dot gnu dot org
2005-09-06 6:07 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-08-09 4:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From phython at gcc dot gnu dot org 2005-08-09 04:28 -------
fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-08-09 4:28 ` phython at gcc dot gnu dot org
@ 2005-09-06 6:07 ` cvs-commit at gcc dot gnu dot org
2005-09-06 6:10 ` phython at gcc dot gnu dot org
2005-09-06 6:10 ` phython at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-06 6:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-06 06:07 -------
Subject: Bug 23161
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: phython@gcc.gnu.org 2005-09-06 06:07:07
Modified files:
gcc : ChangeLog c-typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr23165.c
Log message:
2005-09-05 James A. Morrison <phython@gcc.gnu.org>
PR c/23161
PR c/23165
* c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
if the if is really empty.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.411&r2=2.7592.2.412
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.419.2.11&r2=1.419.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.379&r2=1.5084.2.380
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr23165.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.12.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-09-06 6:10 ` phython at gcc dot gnu dot org
@ 2005-09-06 6:10 ` phython at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-09-06 6:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.0 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/23161] Labels and empty statement warnings
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-09-06 6:07 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-06 6:10 ` phython at gcc dot gnu dot org
2005-09-06 6:10 ` phython at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-09-06 6:10 UTC (permalink / raw)
To: gcc-bugs
--
Bug 23161 depends on bug 23165, which changed state.
Bug 23165 Summary: [4.0 regression] ICE with -W
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23165
What |Old Value |New Value
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23161
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-06 6:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-31 13:31 [Bug c/23161] New: Labels and empty statement warnings neil at gcc dot gnu dot org
2005-07-31 16:42 ` [Bug c/23161] " pinskia at gcc dot gnu dot org
2005-07-31 18:15 ` phython at gcc dot gnu dot org
2005-08-09 4:22 ` cvs-commit at gcc dot gnu dot org
2005-08-09 4:28 ` phython at gcc dot gnu dot org
2005-09-06 6:07 ` cvs-commit at gcc dot gnu dot org
2005-09-06 6:10 ` phython at gcc dot gnu dot org
2005-09-06 6:10 ` phython 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).