aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@bitmover.com>1999-12-16 09:58:23 +0000
committerJeff Law <law@gcc.gnu.org>1999-12-16 02:58:23 -0700
commit3d62d6511445032d7e5633c7972c1db128a59ce7 (patch)
treef93c4aabd31ae5c641ab72076b5edc09777f30a3 /gcc/tree.h
parent27114460d3a2b793de2b99d25138cbcff96ac9df (diff)
downloadgcc-3d62d6511445032d7e5633c7972c1db128a59ce7.zip
gcc-3d62d6511445032d7e5633c7972c1db128a59ce7.tar.gz
gcc-3d62d6511445032d7e5633c7972c1db128a59ce7.tar.bz2
* tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
From-SVN: r30974
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 7b0653c..4108042 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1165,8 +1165,11 @@ struct tree_type
/* Nonzero for any sort of ..._DECL node means this decl node represents
an inline instance of some original (abstract) decl from an inline function;
- suppress any warnings about shadowing some other variable. */
-#define DECL_FROM_INLINE(NODE) (DECL_ABSTRACT_ORIGIN (NODE) != (tree) 0)
+ suppress any warnings about shadowing some other variable.
+ FUNCTION_DECL nodes can also have their abstract origin set to themselves
+ (see save_for_inline_copying). */
+#define DECL_FROM_INLINE(NODE) (DECL_ABSTRACT_ORIGIN (NODE) != (tree) 0 \
+ && DECL_ABSTRACT_ORIGIN (NODE) != (NODE))
/* Nonzero if a _DECL means that the name of this decl should be ignored
for symbolic debug purposes. */