This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Followup to Deprecate -fwritable-strings
- From: Kelley Cook <kcook34 at ford dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 02 Feb 2004 11:26:34 -0500
- Subject: Followup to Deprecate -fwritable-strings
- Hop-count: 1
- References: <200312230023.hBN0NfvM025756@sirius.codesourcery.com>
- Reply-to: Kelley Cook <kcook at gcc dot gnu dot org>
Mark,
This simple gcc-3.4 patch simply notes that -fwritable-strings is
deprecated if anyone attempts to use it.
Note that "note" is unaffected by -Werror and the object file is still
created in all instances, which was the sole objection to the previous
version of this patch.
OK?
Kelley Cook
kcook34@sic1005l9fb21 ~
$ t/gcc/xgcc -Bt/gcc -O2 -fwritable-strings -c test.c
cc1: note: -fwritable-strings is deprecated; see documentation for details
$ t/gcc/xgcc -Bt/gcc -O2 -fwritable-strings -Werror -c test.c
cc1: note: -fwritable-strings is deprecated; see documentation for details
kcook34@sic1005l9fb21 ~
$ t/gcc/xgcc -Bt/gcc -O2 -c test.c
kcook34@sic1005l9fb21 ~
$ t/gcc/xgcc -Bt/gcc -O2 -fno-writable-strings -c test.c
kcook34@sic1005l9fb21 ~
$
2004-02-02 Kelley Cook <kcook@gcc.gnu.org>
* opts.c (OPT_fwritable_strings): Deprecate -fwritable-strings.
--- gcc-orig/gcc/opts.c 2004-01-01 08:58:57.000000000 -0500
+++ gcc-snapshot/gcc/opts.c 2004-02-02 11:00:50.378584000 -0500
@@ -1445,6 +1445,9 @@
case OPT_fwritable_strings:
flag_writable_strings = value;
+ if (flag_writable_strings)
+ inform ("-fwritable-strings is deprecated; "
+ "see documentation for details");
break;
case OPT_fzero_initialized_in_bss: