diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-29 06:01:02 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-29 06:01:02 +0000 |
commit | de84ad029c2783ada53d07265be2a81710d8eba7 (patch) | |
tree | 27557fbefd60e25a0fdee561b47c838c6ce9d2b6 /gcc/tree.c | |
parent | 9644542ebb5f25b574b9788a9a8d26507bf8483d (diff) | |
download | gcc-de84ad029c2783ada53d07265be2a81710d8eba7.tar.gz |
2009-05-29 Kai Tietz <kai.tietz@onevision.com>
* tree.c (handle_dll_attribute): Check if node is
of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index ddfa0a43258..5e562a59e05 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4169,7 +4169,8 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags, if (*no_add_attrs == false) DECL_DLLIMPORT_P (node) = 1; } - else if (DECL_DECLARED_INLINE_P (node)) + else if (TREE_CODE (node) == FUNCTION_DECL + && DECL_DECLARED_INLINE_P (node)) /* An exported function, even if inline, must be emitted. */ DECL_EXTERNAL (node) = 0; |