This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[incremental] Patch: FYI: update test case
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 14 Jan 2008 12:14:33 -0700
- Subject: [incremental] Patch: FYI: update test case
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in on the incremental-compiler branch.
The change to string concatenation handling in the C parser also
changed the location of the warning given for a string that is too
long. This patch updates the test suite to reflect that.
Tom
ChangeLog:
2008-01-14 Tom Tromey <tromey@redhat.com>
* c-parser.c: Fix comment.
testsuite/ChangeLog:
2008-01-14 Tom Tromey <tromey@redhat.com>
* gcc.dg/Woverlength-strings-pedantic-c89.c: Move warning
location.
Index: c-parser.c
===================================================================
--- c-parser.c (revision 131109)
+++ c-parser.c (working copy)
@@ -1,6 +1,6 @@
/* Parser for C and Objective-C.
Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
Parser actions based on the old Bison parser; structure somewhat
influenced by and fragments based on the C++ parser.
@@ -254,8 +254,8 @@
C_ID_NONE
} c_id_kind;
-/* A single C token after string literal concatenation and conversion
- of preprocessing tokens to tokens. */
+/* A single C token after conversion of preprocessing tokens to
+ tokens. */
typedef struct c_token GTY (())
{
/* The kind of token. */
Index: testsuite/gcc.dg/Woverlength-strings-pedantic-c89.c
===================================================================
--- testsuite/gcc.dg/Woverlength-strings-pedantic-c89.c (revision 130053)
+++ testsuite/gcc.dg/Woverlength-strings-pedantic-c89.c (working copy)
@@ -13,7 +13,7 @@
/* C99's minimum-maximum is 4095. */
const char x4096[] =
- THO THO THO THO /* 4000 */
+ THO THO THO THO /* 4000 */ /* { dg-warning "greater than" } */
TEN TEN TEN TEN TEN /* 4050 */
TEN TEN TEN TEN /* 4090 */
- "123456"; /* { dg-warning "greater than" } */
+ "123456";