Current GDC experience and questions

jerro a at a.com
Fri Mar 8 04:40:47 PST 2013


> I tried modifying some trivial sources, which were using only
> 'pragma(attribute, noinline)', but couldn't get them to work; 
> the compiler keeps
> complaining, 'cc1d: error: unknown attribute noinline'.
> Is 'import gcc.attribute; @attribute("noinline") void f() {}' 
> supposed to work?

It isn't. When the syntax was changed to @attribute, all the gcc 
attributes were disabled. If I understood correctly, the reason 
was that those were only meant for internal GDC use. AFAIK, 
noinline was removed even before that.

Iain did say something about adding supported attributes one by 
one as they are needed. So I guess you need to talk to him about 
adding noinline.


More information about the D.gnu mailing list