Function Specific Option Pragmas

Iain Buclaw ibuclaw at ubuntu.com
Sun Aug 18 07:47:15 PDT 2013


On 18 August 2013 06:11, Ilya Yaroshenko <ilyayaroshenko at gmail.com> wrote:
> Hello,
>
> http://forum.dlang.org/thread/vaifcgxtcmlxcxrjkghz@forum.dlang.org#post-racgwaeruajvlpwiuoon:40forum.dlang.org
>
> Has GDC "Function Specific Option Pragmas"?
>
> Best regards,
> Ilya

Hi Ilya,

Currently GDC only supports "target" attributes in that list.

eg:

import gcc.attribute;

@attribute("target", "sse4")
void main()
{
   /* ... */
}


Regards,
-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list