Re: @forceInline can't inline when source code is available

2015-05-27 Thread Iain Buclaw via D.gnu
On 28 May 2015 04:15, "Mike via D.gnu" wrote: > > Consider this code > > testInline.d > > module testInline; > > import gcc.attribute; > > public enum inline = gcc.attribute.attribute("forceinline"); > > @inline int add(int a, int b) > { > return a + b; > } > > test.d > ** > i

Re: @forceInline can't inline when source code is available

2015-05-27 Thread ketmar via D.gnu
On Thu, 28 May 2015 02:12:10 +, Mike wrote: > Shouldn't it be able to inline the "add" function since the source code > is there in the testInline.d file? Should I file a bug? actually, the code is not available, as ".d" file is treated like ".di" file here, i.e. file with only interface de

@forceInline can't inline when source code is available

2015-05-27 Thread Mike via D.gnu
Consider this code testInline.d module testInline; import gcc.attribute; public enum inline = gcc.attribute.attribute("forceinline"); @inline int add(int a, int b) { return a + b; } test.d ** import std.stdio; import testInline; void main() { writeln(add(1, 2)); }

[Bug 189] module unwind is in file 'gcc\unwind.h' which cannot be read

2015-05-27 Thread via D.gnu
http://bugzilla.gdcproject.org/show_bug.cgi?id=189 Tomáš Chaloupka changed: What|Removed |Added CC||chalu...@gmail.com -- You are receivi