public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file"
@ 2006-08-22 9:40 vincent at vinc17 dot org
2006-08-22 10:16 ` [Bug c/28800] " falk at debian dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: vincent at vinc17 dot org @ 2006-08-22 9:40 UTC (permalink / raw)
To: gcc-bugs
I get the following warning:
dixsept:~> cat > tst.c
#define FOO
dixsept:~> gcc -pedantic -c tst.c
tst.c:1: warning: ISO C forbids an empty source file
But the source isn't empty (and AFAIK, the ISO C doesn't forbid empty sources).
Perhaps gcc mixes up with a translation unit, in which case the wording should
be changed.
--
Summary: Incorrect warning "ISO C forbids an empty source file"
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vincent at vinc17 dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28800
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/28800] Incorrect warning "ISO C forbids an empty source file"
2006-08-22 9:40 [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file" vincent at vinc17 dot org
@ 2006-08-22 10:16 ` falk at debian dot org
2008-02-26 22:42 ` [Bug c/28800] warning "ISO C forbids an empty source file" could be improved rwild at gcc dot gnu dot org
2008-02-26 22:48 ` rwild at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: falk at debian dot org @ 2006-08-22 10:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from falk at debian dot org 2006-08-22 10:16 -------
Correct, the warning should say "ISO C forbids an empty translation unit".
--
falk at debian dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28800
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/28800] warning "ISO C forbids an empty source file" could be improved
2006-08-22 9:40 [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file" vincent at vinc17 dot org
2006-08-22 10:16 ` [Bug c/28800] " falk at debian dot org
@ 2008-02-26 22:42 ` rwild at gcc dot gnu dot org
2008-02-26 22:48 ` rwild at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rwild at gcc dot gnu dot org @ 2008-02-26 22:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rwild at gcc dot gnu dot org 2008-02-26 22:42 -------
Subject: Bug 28800
Author: rwild
Date: Tue Feb 26 22:41:16 2008
New Revision: 132690
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132690
Log:
gcc/:
PR c/28800
* c-parser.c (c_parser_translation_unit): Warn for empty
translation unit, not empty source file.
gcc/testsuite/:
PR c/28800
* gcc.dg/empty-source-2.c: Adjust for warning message.
* gcc.dg/empty-source-3.c: Likewise.
* gcc.dg/pack-test-2.c: Adjust comment.
* gcc.dg/pragma-ep-2.c: Likewise.
* gcc.dg/pragma-re-2.c: Likewise.
* gcc.dg/va-arg-2.c: Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/empty-source-2.c
trunk/gcc/testsuite/gcc.dg/empty-source-3.c
trunk/gcc/testsuite/gcc.dg/pack-test-2.c
trunk/gcc/testsuite/gcc.dg/pragma-ep-2.c
trunk/gcc/testsuite/gcc.dg/pragma-re-2.c
trunk/gcc/testsuite/gcc.dg/va-arg-2.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28800
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/28800] warning "ISO C forbids an empty source file" could be improved
2006-08-22 9:40 [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file" vincent at vinc17 dot org
2006-08-22 10:16 ` [Bug c/28800] " falk at debian dot org
2008-02-26 22:42 ` [Bug c/28800] warning "ISO C forbids an empty source file" could be improved rwild at gcc dot gnu dot org
@ 2008-02-26 22:48 ` rwild at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rwild at gcc dot gnu dot org @ 2008-02-26 22:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rwild at gcc dot gnu dot org 2008-02-26 22:47 -------
Fixed.
--
rwild at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Ralf dot Wildenhues at gmx
| |dot de
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28800
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-26 22:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-22 9:40 [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file" vincent at vinc17 dot org
2006-08-22 10:16 ` [Bug c/28800] " falk at debian dot org
2008-02-26 22:42 ` [Bug c/28800] warning "ISO C forbids an empty source file" could be improved rwild at gcc dot gnu dot org
2008-02-26 22:48 ` rwild 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).