summaryrefslogtreecommitdiffstats
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-08 16:37:06 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-08 16:37:06 +0000
commit3b28840692db43ac6b8adc4245ed0ca1dcf73cbe (patch)
tree29cbaa01253970fbc753eff9f70ce21ac5d8b696 /gcc/c-lang.c
parent1c8ac6c6caead03f2964f0267387d02a793dc602 (diff)
downloadppe42-gcc-3b28840692db43ac6b8adc4245ed0ca1dcf73cbe.tar.gz
ppe42-gcc-3b28840692db43ac6b8adc4245ed0ca1dcf73cbe.zip
* c-common.h (struct c_lang_decl): Add declared_inline.
* c-tree.h (DECL_DECLARED_INLINE_P): New. * c-lang.c (c_disregard_inline_limits): Use it. * c-decl.c (duplicate_decls): Likewise. (pushdecl, redeclaration_error_message): Likewise. (pushdecl): Allocate DECL_LANG_SPECIFIC if needed. (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P. Set DECL_INLINE if -finline-functions. (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here. * cp-tree.h (struct lang_decl_flags): Remove declared_inline. (DECL_DECLARED_INLINE_P): Use the bit in struct c_lang_decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46079 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 7e7ebb74eed..6ff8b9c72be 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -340,7 +340,7 @@ static int
c_disregard_inline_limits (fn)
tree fn;
{
- return DECL_INLINE (fn) && DECL_EXTERNAL (fn);
+ return DECL_DECLARED_INLINE_P (fn) && DECL_EXTERNAL (fn);
}
static tree inline_forbidden_p PARAMS ((tree *, int *, void *));
OpenPOWER on IntegriCloud