[Bug 161] GDC prevents backend from removing dead functions

2015-05-03 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=161 --- Comment #3 from Iain Buclaw --- (In reply to Iain Buclaw from comment #2) > > When compiling the module, 'private bailOut' is would be seen as unused, and > so considered as a candidate for removal. However, external modules that > instanti

[Bug 161] GDC prevents backend from removing dead functions

2015-05-03 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=161 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug 161] GDC prevents backend from removing dead functions

2015-04-08 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=161 --- Comment #1 from Iain Buclaw --- Isn't this what LTO/strip is used for? Actually, it's mark_needed in d-objfile.cc that forces it's write to objfile. It's needed for sure, otherwise phantom linker errors crop up in larger / heavy templated p