opt: Don't emit inline functions from dead code
Inside dead code don't regard inline functions as being referenced.
This commit is contained in:
2
tccgen.c
2
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 {
|
||||
|
||||
Reference in New Issue
Block a user