From ad8e14b740f87d814a00f9f0d44301f71ffd7ec6 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 26 Sep 2016 22:31:19 +0200 Subject: opt: Don't emit inline functions from dead code Inside dead code don't regard inline functions as being referenced. --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index 056ee4e..f9d4a7c 100644 --- a/tccgen.c +++ b/tccgen.c @@ -4594,7 +4594,7 @@ ST_FUNC void unary(void) effect to generate code for it at the end of the compilation unit. Inline function as always generated in the text section. */ - if (!s->c) + if (!s->c && !nocode_wanted) put_extern_sym(s, text_section, 0, 0); r = VT_SYM | VT_CONST; } else { -- cgit v1.3.1