This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Document new inline option and attribute in gcc 4.2 changes list
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 20 Mar 2007 13:50:41 -0700
- Subject: Document new inline option and attribute in gcc 4.2 changes list
This patch adds some notes about the new -fgnu89-inline option and the
new gnu_inline function attribute in the gcc 4.2 changes list.
I plan to commit this patch in a day or two if I don't hear any
objections.
Ian
Index: gcc-4.2/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.2/changes.html,v
retrieving revision 1.25
diff -u -r1.25 changes.html
--- gcc-4.2/changes.html 20 Mar 2007 20:37:07 -0000 1.25
+++ gcc-4.2/changes.html 20 Mar 2007 20:49:14 -0000
@@ -60,6 +60,19 @@
<li>The pragma <code>redefine_extname</code> will now
macro expand its tokens for compatibility with
SunPRO.</li>
+
+ <li>In the next release of GCC, 4.3, <code>-std=c99</code> or
+ <code>-std=gnu99</code> will direct GCC to handle inline
+ functions as specified in the C99 standard. In preparation
+ for this, GCC 4.2 will warn about any use of non-static inline
+ functions in gnu99 or c99 mode. This new warning may be
+ disabled with the new <code>gnu_inline</code> function
+ attribute or the new <code>-fgnu89-inline</code> command line
+ option. Also, GCC 4.2 and later will define one of the
+ preprocessor macros <code>__GNUC_GNU_INLINE__</code> or
+ <code>__GNUC_STDC_INLINE__</code> to indicate the semantics of
+ inline functions in the current compilation.</li>
+
</ul>
<h3>C++</h3>