Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sat, 26 Sep 2015 19:58:14 +0200 schrieb Artur Skawina via Digitalmars-d : > `allow` is the default state and always safe; for the cases > where it's /undesirable/, there is noinline. > > artur No what I meant was when the compiler sees inline assembly or anything

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sun, 27 Sep 2015 16:48:21 +0200 schrieb Artur Skawina via Digitalmars-d : > On 09/27/15 13:48, Marco Leise via Digitalmars-d wrote: > > Am Sat, 26 Sep 2015 19:58:14 +0200 > > schrieb Artur Skawina via Digitalmars-d > > : > > > >>

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Marco Leise via Digitalmars-d
Am Sat, 26 Sep 2015 21:11:07 +0200 schrieb Jacob Carlborg : > On 2015-09-26 18:42, Marco Leise wrote: > > > Maybe the compiler devs can decide on more common syntax like > > a generic core.attribute or just use pragma for inlining, but > > extend it so that it offers more options: >

Re: pragma(inline, true) not very useful in its current state?

2015-09-27 Thread Artur Skawina via Digitalmars-d
On 09/27/15 13:48, Marco Leise via Digitalmars-d wrote: > Am Sat, 26 Sep 2015 19:58:14 +0200 > schrieb Artur Skawina via Digitalmars-d > : > >> `allow` is the default state and always safe; for the cases >> where it's /undesirable/, there is noinline. > > No what I

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Dmitry Olshansky via Digitalmars-d
On 26-Sep-2015 07:27, Manu via Digitalmars-d wrote: On 25 September 2015 at 01:47, David Nadlinger via Digitalmars-d wrote: Hi all, [...] our resident Mr. Why-Can't-D-Be-More-Like-C++, Manu Evans Bah, I'm not sure what this means. If you mean I advocate for

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-26 06:27, Manu via Digitalmars-d wrote: We _really_ need attribute aliasing in some form, especially since LDC/GDC have compiler-specific attributes that DMD doesn't recognise. I'm not sure how much this helps but can't you use a dummy UDA on DMD for the GDC/LDC attributes? --

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Marco Leise via Digitalmars-d
Am Sat, 26 Sep 2015 12:21:15 +0200 schrieb Jacob Carlborg : > On 2015-09-26 06:27, Manu via Digitalmars-d wrote: > > > We _really_ need attribute aliasing in > > some form, especially since LDC/GDC have compiler-specific attributes > > that DMD doesn't recognise. > > I'm not sure

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Artur Skawina via Digitalmars-d
On 09/26/15 18:42, Marco Leise via Digitalmars-d wrote: > Am Sat, 26 Sep 2015 12:21:15 +0200 > schrieb Jacob Carlborg : > >> On 2015-09-26 06:27, Manu via Digitalmars-d wrote: >> >>> We _really_ need attribute aliasing in >>> some form, especially since LDC/GDC have compiler-specific

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Johannes Pfau via Digitalmars-d
Am Sat, 26 Sep 2015 18:42:03 +0200 schrieb Marco Leise : > Am Sat, 26 Sep 2015 12:21:15 +0200 > schrieb Jacob Carlborg : > > > On 2015-09-26 06:27, Manu via Digitalmars-d wrote: > > > > > We _really_ need attribute aliasing in > > > some form, especially since

Re: pragma(inline, true) not very useful in its current state?

2015-09-26 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-26 18:42, Marco Leise wrote: Maybe the compiler devs can decide on more common syntax like a generic core.attribute or just use pragma for inlining, but extend it so that it offers more options: Yeah, we already have core.attribute. Now they just have to agree on the name :) --

Re: pragma(inline, true) not very useful in its current state?

2015-09-25 Thread Manu via Digitalmars-d
On 25 September 2015 at 01:47, David Nadlinger via Digitalmars-d wrote: > Hi all, > > [...] > our resident Mr. Why-Can't-D-Be-More-Like-C++, Manu Evans Bah, I'm not sure what this means. If you mean I advocate for things that are perfect how they are in C/C++,

Re: pragma(inline, true) not very useful in its current state?

2015-09-25 Thread Iain Buclaw via Digitalmars-d
On 26 Sep 2015 6:27 am, "Manu via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On 25 September 2015 at 01:47, David Nadlinger via Digitalmars-d > wrote: > > Hi all, > > > > [...] > > our resident Mr. Why-Can't-D-Be-More-Like-C++, Manu Evans > > Bah, I'm

Re: pragma(inline, true) not very useful in its current state?

2015-09-25 Thread Manu via Digitalmars-d
On 25 September 2015 at 04:10, John Colvin via Digitalmars-d wrote: > On Thursday, 24 September 2015 at 15:47:45 UTC, David Nadlinger wrote: >> >> Hi all, >> >> I'm not even referring to the multitude of restrictions in the DMD >> frontend inliner here. When looking

Re: pragma(inline, true) not very useful in its current state?

2015-09-25 Thread Iain Buclaw via Digitalmars-d
On 24 Sep 2015 9:46 pm, "Walter Bright via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On 9/24/2015 8:47 AM, David Nadlinger wrote: >> >> What were the reasons behind this decision? > > > The trouble is the compiler does inlining as a top down traversal, whereas forcing inline with no

Re: pragma(inline, true) not very useful in its current state?

2015-09-24 Thread Walter Bright via Digitalmars-d
On 9/24/2015 8:47 AM, David Nadlinger wrote: What were the reasons behind this decision? The trouble is the compiler does inlining as a top down traversal, whereas forcing inline with no -inline would be a bottom up thing. The compiler could always do the top down traversal, but it would

Re: pragma(inline, true) not very useful in its current state?

2015-09-24 Thread Jack Stouffer via Digitalmars-d
On Thursday, 24 September 2015 at 15:47:45 UTC, David Nadlinger wrote: which is to force inlining of certain functions even in debug builds. I don't understand what the problem is. Just pass -inline in your debug build.

Re: pragma(inline, true) not very useful in its current state?

2015-09-24 Thread John Colvin via Digitalmars-d
On Thursday, 24 September 2015 at 15:47:45 UTC, David Nadlinger wrote: Hi all, I'm not even referring to the multitude of restrictions in the DMD frontend inliner here. When looking into the remaining 2.068 test failures for LDC, I was surprised to find out that DMD only honors