aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
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/c-common.h
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/c-common.h')
-rw-r--r--gcc/c-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 59525d5..5ce8923 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -235,6 +235,10 @@ extern tree c_global_trees[CTI_MAX];
These may be shadowed, and may be referenced from nested functions. */
#define C_DECLARED_LABEL_FLAG(label) TREE_LANG_FLAG_1 (label)
+/* Flag strings given by __FUNCTION__ and __PRETTY_FUNCTION__ for a
+ warning if they undergo concatenation. */
+#define C_ARTIFICIAL_STRING_P(NODE) TREE_LANG_FLAG_0 (NODE)
+
typedef enum c_language_kind
{
clk_c, /* A dialect of C: K&R C, ANSI/ISO C89, C2000,