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]

[patch][gcc47] Deprecate -fconserve-space


(xf. http://gcc.gnu.org/ml/gcc/2012-06/msg00043.html)

On Mon, Jun 4, 2012 at 7:05 PM, Jason Merrill <jason at redhat dot com> wrote:
>>> Jason, is this flag something that we could deprecate for GCC 4.7 and
>>> remove?
>>
>>
>> The docs say the flag is not useful these days as BSS is widely available.
>
>
> Right. ?So yes, go ahead.

Hello,

Here are the patches for wwwdocs and GCC 4.7 branch. Bootstrapped and
tested on x86_64-unknown-linux-gnu. OK?

Ciao!
Steven


Index: htdocs/gcc-4.7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.110
diff -u -r1.110 changes.html
--- htdocs/gcc-4.7/changes.html	1 Jun 2012 09:27:10 -0000	1.110
+++ htdocs/gcc-4.7/changes.html	4 Jun 2012 19:35:22 -0000
@@ -15,6 +15,11 @@
 <h2>Caveats</h2>

   <ul>
+    <li><p>The <code>-fconserve-space</code> flag has been
+    deprecated.  The flag only had an effect for G++ but could
+    result in wrong semantics (please refer to the GCC manual
+    for further details).  The flag will be removed in GCC 4.8</p></li>
+
     <li><p>Support for a number of older systems and recently
     unmaintained or untested target ports of GCC has been declared
     obsolete in GCC 4.7.  Unless there is activity to revive them, the


gcc/
        * doc/invoke.texi (item -fconserve-space): This flag is deprecated

c-family/
        * c.opt (fconserve-space): Deprecate.

Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi     (revision 188202)
+++ doc/invoke.texi     (working copy)
@@ -1940,6 +1940,8 @@ exhaustion is signalled by throwing @cod

 @item -fconserve-space
 @opindex fconserve-space
+This option is now deprecated.
+
 Put uninitialized or run-time-initialized global variables into the
 common segment, as C does.  This saves space in the executable at the
 cost of not diagnosing duplicate definitions.  If you compile with this
Index: c-family/c.opt
===================================================================
--- c-family/c.opt      (revision 188202)
+++ c-family/c.opt      (working copy)
@@ -745,7 +745,7 @@ Allow the arguments of the '?' operator

 fconserve-space
 C++ ObjC++ Var(flag_conserve_space)
-Reduce the size of object files
+Deprecated.  Reduce the size of object files, at the expense of wrong
semantics.

 fconstant-string-class=
 ObjC ObjC++ Joined MissingArgError(no class name specified with %qs)


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