aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/common-utils.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-01-21 14:16:57 +0400
committerJoel Brobecker <brobecker@adacore.com>2014-01-22 09:03:31 +0400
commit46bbb3edacf5a86d3f84de52593119396b448b69 (patch)
treee9c56d4288ebd49af663ddf4137a67158b4effdf /gdb/common/common-utils.h
parent3a80edfc74646ed5e651d60e7b4f95d165175a89 (diff)
downloadbinutils-46bbb3edacf5a86d3f84de52593119396b448b69.zip
binutils-46bbb3edacf5a86d3f84de52593119396b448b69.tar.gz
binutils-46bbb3edacf5a86d3f84de52593119396b448b69.tar.bz2
Add ARI (ok) marker for __func__ reference in common-utils.h
The ARI script flagged the use of the __func__ variable, which is normally not allowed (not defined in C90). However, this particular use is OK, as the reference is only made when __STDC_VERSION__ >= 199901L. So, add an "ARI:" comment to explicitly OK this use. gdb/ChangeLog: * common/common-utils.h: Add "ARI:" comment beside __func__ reference.
Diffstat (limited to 'gdb/common/common-utils.h')
-rw-r--r--gdb/common/common-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h
index 5960c55..063698d 100644
--- a/gdb/common/common-utils.h
+++ b/gdb/common/common-utils.h
@@ -39,7 +39,7 @@
#define FUNCTION_NAME __PRETTY_FUNCTION__
#else
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
-#define FUNCTION_NAME __func__
+#define FUNCTION_NAME __func__ /* ARI: func */
#endif
#endif