aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-06-24 09:21:22 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-06-24 09:21:22 +0000
commite4e3ab5ad4749f7d157da8e34c9ffa7175dc6866 (patch)
treeca0ed0aa9fb95943cbb6ea51ac3d1d93ce0e7ab0 /gcc
parent7e0f5a14435d2d9ba17d247f9ac18d277f488187 (diff)
downloadgcc-e4e3ab5ad4749f7d157da8e34c9ffa7175dc6866.zip
gcc-e4e3ab5ad4749f7d157da8e34c9ffa7175dc6866.tar.gz
gcc-e4e3ab5ad4749f7d157da8e34c9ffa7175dc6866.tar.bz2
* cpp.texi: Clarify #pragma GCC namespace.
From-SVN: r34676
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cpp.texi13
2 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0185eba..46bb63a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-24 Nathan Sidwell <nathan@codesourcery.com>
+
+ * cpp.texi: Clarify #pragma GCC namespace.
+
2000-06-24 Philipp Thomas <pthomas@suse.de>
* aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
diff --git a/gcc/cpp.texi b/gcc/cpp.texi
index 20f278d..6413eec 100644
--- a/gcc/cpp.texi
+++ b/gcc/cpp.texi
@@ -2646,10 +2646,15 @@ some old C programs contain such lines.
The ANSI standard specifies that the effect of the @samp{#pragma}
directive is implementation-defined. The GNU C preprocessor recognizes
some pragmas, and passes unrecognized ones through to the preprocessor
-output, so they are available to the compilation pass. GNU C preprocessor
-pragmas are of the form @samp{#pragma GCC ...}. For backwards
-compatibility previously supported pragmas are also recognized without
-the @samp{GCC}, however that use is deprecated.
+output, so they are available to the compilation pass.
+
+In line with the C99 standard, which introduces a STDC namespace for
+C99 pragmas, the preprocessor introduces a GCC namespace for GCC
+pragmas. Supported GCC preprocessor pragmas are of the form
+@samp{#pragma GCC ...}. For backwards compatibility previously
+supported pragmas are also recognized without the @samp{GCC} prefix,
+however that use is deprecated. Pragmas that are already deprecated
+are not recognized with a @samp{GCC} prefix.
@findex #ident
The @samp{#ident} directive is supported for compatibility with certain