[Bug 139] GDC writes all-zero initialisers in the rodata section

2014-11-26 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=139 --- Comment #10 from Johannes Pfau --- Reverting this change exposes a test failure in phobos. However every seemingly unrelated change hides the error. gcc-4.9 works fine. So I wonder whether this is actually a bug in the GCC-5 snapshot? Here's

Re: Cross-module inlining

2014-11-26 Thread Iain Buclaw via D.gnu
On 26 November 2014 at 15:40, Johannes Pfau via D.gnu wrote: > Has anybody had a closer look at cross-module inlining? > What exactly is necessary to get it working and how difficult would it > be to implement? > > AFAICS > * We'd need to do semantic3 on all imported modules > * We'd have to call

Cross-module inlining

2014-11-26 Thread Johannes Pfau via D.gnu
Has anybody had a closer look at cross-module inlining? What exactly is necessary to get it working and how difficult would it be to implement? AFAICS * We'd need to do semantic3 on all imported modules * We'd have to call (a modified) toObjfile on all functions from imported modules However, w