diff options
| author | Michael Matz <matz@suse.de> | 2016-09-26 22:31:19 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:12 +0100 |
| commit | ad8e14b740f87d814a00f9f0d44301f71ffd7ec6 (patch) | |
| tree | ce081aa8c2e0aada497ddefb52963089dcd336b7 /tccgen.c | |
| parent | ce55d03eef8cefff5ed731c0e1176425d59c600f (diff) | |
| download | tinycc-ad8e14b740f87d814a00f9f0d44301f71ffd7ec6.tar.gz tinycc-ad8e14b740f87d814a00f9f0d44301f71ffd7ec6.tar.bz2 | |
opt: Don't emit inline functions from dead code
Inside dead code don't regard inline functions as being
referenced.
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |
