summaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-26 22:41:16 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-26 22:41:16 +0000
commit784c0df457f8bf2478cea7326cd54371de81da91 (patch)
treeba260f2caf92b3ea1da029e11ec95332835476cb /gcc/c-parser.c
parent187a3ad695a391a74077b36d6e9558c7fcba4d87 (diff)
downloadgcc-784c0df457f8bf2478cea7326cd54371de81da91.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132690 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r--gcc/c-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index 72f8a21c0fe..1e63c14ef8b 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -1069,7 +1069,7 @@ c_parser_translation_unit (c_parser *parser)
if (c_parser_next_token_is (parser, CPP_EOF))
{
if (pedantic)
- pedwarn ("%HISO C forbids an empty source file",
+ pedwarn ("%HISO C forbids an empty translation unit",
&c_parser_peek_token (parser)->location);
}
else