This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Followup to Deprecate -fwritable-strings


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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]