aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-12-11 19:42:34 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-12-11 19:42:34 +0000
commit9aa8a1df0506a9622fea14f7c28b73fdd5324f8e (patch)
tree2018e6f82b3ca5d8eb854a0d321eb3e9f7091dea /gcc/doc
parent0afeef64be52defd45b00c47464183dd43381725 (diff)
downloadgcc-9aa8a1df0506a9622fea14f7c28b73fdd5324f8e.zip
gcc-9aa8a1df0506a9622fea14f7c28b73fdd5324f8e.tar.gz
gcc-9aa8a1df0506a9622fea14f7c28b73fdd5324f8e.tar.bz2
c-common.c (combine_strings): Complain if concatenating __FUNCTION__.
* c-common.c (combine_strings): Complain if concatenating __FUNCTION__. * c-parse.in (yylexname): Flag artificial strings. * tree.h (TREE_ARTIFICIAL_STRING_P): New. doc: * extend.texi: Update. testsuite: * gcc.dg/concat.c: New test. From-SVN: r47890
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 1a4ff58..10524a5 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -4120,8 +4120,9 @@ On the other hand, @samp{#ifdef __FUNCTION__} does not have any special
meaning inside a function, since the preprocessor does not do anything
special with the identifier @code{__FUNCTION__}.
-GCC also supports the magic word @code{__func__}, defined by the
-ISO standard C99:
+Note that these semantics are deprecated, and that GCC 3.2 will handle
+@code{__FUNCTION__} and @code{__PRETTY_FUNCTION__} the same way as
+@code{__func__}. @code{__func__} is defined by the ISO standard C99:
@display
The identifier @code{__func__} is implicitly declared by the translator