From 6272a44980d256783c492987b0b303f4910e848c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 11 Apr 1995 10:41:27 -0700 Subject: (poplevel): Do output inline function if DECL_ABSTRACT_ORIGIN points to itself. From-SVN: r9359 --- gcc/c-decl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 621e71d..8f95348 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -973,8 +973,12 @@ poplevel (keep, reverse, functionbody) { /* If this decl was copied from a file-scope decl on account of a block-scope extern decl, - propagate TREE_ADDRESSABLE to the file-scope decl. */ - if (DECL_ABSTRACT_ORIGIN (decl) != 0) + propagate TREE_ADDRESSABLE to the file-scope decl. + + DECL_ABSTRACT_ORIGIN can be set to itself if warn_return_type is + true, since then the decl goes through save_for_inline_copying. */ + if (DECL_ABSTRACT_ORIGIN (decl) != 0 + && DECL_ABSTRACT_ORIGIN (decl) != decl) TREE_ADDRESSABLE (DECL_ABSTRACT_ORIGIN (decl)) = 1; else { -- cgit v1.1