summaryrefslogtreecommitdiff
path: root/gnu/egcs
diff options
context:
space:
mode:
authorHiroaki Etoh <etoh@cvs.openbsd.org>2002-12-25 14:26:10 +0000
committerHiroaki Etoh <etoh@cvs.openbsd.org>2002-12-25 14:26:10 +0000
commit4bfe41a7e87b8272e0ffc977c2a1937927b0b4b8 (patch)
tree2d07f6da2d9a98ebb74cf1d165cd1e6a38a678f7 /gnu/egcs
parent95ef4021a0c399549005e59cc56760e2eb908779 (diff)
set variables of inline function with DECL_INLINE
Diffstat (limited to 'gnu/egcs')
-rw-r--r--gnu/egcs/gcc/integrate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/integrate.c b/gnu/egcs/gcc/integrate.c
index 2db5b308ac8..2cada164a04 100644
--- a/gnu/egcs/gcc/integrate.c
+++ b/gnu/egcs/gcc/integrate.c
@@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */
#include "function.h"
#include "toplev.h"
#include "intl.h"
+#include "protector.h"
#include "obstack.h"
#define obstack_chunk_alloc xmalloc
@@ -2298,6 +2299,8 @@ integrate_decl_tree (let, level, map)
}
/* These args would always appear unused, if not for this. */
TREE_USED (d) = 1;
+ if (flag_propolice_protection && TREE_CODE (d) == VAR_DECL)
+ DECL_INLINE (d) = 1;
if (DECL_LANG_SPECIFIC (d))
copy_lang_decl (d);