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]

Re: Abolish 'static' functions in local scope



On 31/08/2004, at 1:52 AM, Gerald Pfeifer wrote:


On Mon, 30 Aug 2004, Geoffrey Keating wrote:
  I believe all three exist in real code.  The last two exist in
  GCC's testsuite.  (A) exists in Apple's code base and
  the Linux kernel.

Since this is used in real code, even if not too often in those codebases you could check, would you mind adding a note to gcc-3.5/changes.html towards that end?

Aha! I meant to ask about where to put such notes, but forgot.


Does this look right to you?

*** changes.html.~1.14.~ Tue Aug 17 12:47:28 2004
--- changes.html Tue Aug 31 12:55:33 2004
***************
*** 49,54 ****
--- 49,60 ----
deprecated in 3.3.4 and 3.4, have been removed.</li>
<li>The <code>-fwritable-strings</code> option, which was
deprecated in 3.4, has been removed.</li>
+ <li>The extension, or bug, where the C compiler would try to
+ give a meaning to a 'static' declaration at block scope, like
+ <pre>foo() {
+ static int bar();
+ }</pre> has been removed; the compiler will now always give an error on
+ this construct.</li>
</ul>


<h3>C++</h3>

--
Geoff Keating <geoffk@apple.com>

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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