From 3cdbd1959e5d0eaf592ee668d509f8513b89f62d Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 16 Jun 2015 21:34:09 -0400 Subject: [PATCH] sep_comp: declare method __attribute__((weak)) to allow skip of undead methods Signed-off-by: Jean Privat --- src/compiler/separate_compiler.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/separate_compiler.nit b/src/compiler/separate_compiler.nit index b971cdb..b1e08c8 100644 --- a/src/compiler/separate_compiler.nit +++ b/src/compiler/separate_compiler.nit @@ -2214,7 +2214,7 @@ class SeparateRuntimeFunction var mmethoddef = self.mmethoddef var sig = "{c_ret} {c_name}{c_sig}" - compiler.provide_declaration(self.c_name, "{sig};") + compiler.provide_declaration(self.c_name, "{sig} __attribute__((weak));") var rta = compiler.as(SeparateCompiler).runtime_type_analysis if rta != null and not rta.live_mmodules.has(mmethoddef.mclassdef.mmodule) then -- 1.7.9.5