[cfe-dev] [compiler-rt] 2 nit Win32 patches

Nico Rieck nico.rieck at gmail.com
Wed Jul 17 07:19:35 PDT 2013


On 17.07.2013 15:58, Richard wrote:
> - __attribute__ is best worked around with a macro that expands into an
>    __attribute__ decoration or nothing if the tool chain doesn't
>    support it.  Conditionalize the expansion by a test on the tool
>    chain.

What if another compiler supports a non-standard mechanism to achieve 
the same/similar thing as a specific attribute? Best to define a macro 
for the intent, and then expand it to __attribute__, __declspec, or 
whatever else there is.

-Nico



More information about the cfe-dev mailing list