This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix gcc.dg/fwritable-strings-1.c on 3.4 branch
- From: Krister Walfridsson <cato at df dot lth dot se>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Feb 2004 04:23:34 +0100 (MET)
- Subject: [PATCH] Fix gcc.dg/fwritable-strings-1.c on 3.4 branch
The gcc 3.4 test failure:
FAIL: gcc.dg/fwritable-strings-1.c (test for excess errors)
is due to an unexpected compiler message that -fwritable-strings is
deprecated.
OK to commit the patch below to the 3.4 branch?
Bootstrapped and tested on i386-unknown-netbsdelf1.6.
/Krister
2004-02-08 Krister Walfridsson <cato@df.lth.se>
* gcc.dg/fwritable-strings-1.c: Expect -fwritable-strings
deprecation warning.
Index: fwritable-strings-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/fwritable-strings-1.c,v
retrieving revision 1.1.2.1
diff -c -r1.1.2.1 fwritable-strings-1.c
*** fwritable-strings-1.c 30 Jan 2004 14:23:24 -0000 1.1.2.1
--- fwritable-strings-1.c 8 Feb 2004 02:14:47 -0000
***************
*** 3,8 ****
--- 3,9 ----
/* { dg-do run } */
/* { dg-options "-fwritable-strings" } */
+ /* { dg-error "-fwritable-strings is deprecated" "" { target *-*-* } 0 } */
extern void abort(void);