[cfe-dev] Questions about compiler-rt and __arm__

Jonathan Roelofs jonathan at codesourcery.com
Wed May 7 16:04:55 PDT 2014



On 5/7/14, 3:34 PM, Marshall Clow wrote:
> In compiler-rt, there’s a lot of checks to see if we’re running on an ARM.
>
> Some of them are:
> #if __arm__
> while most of them are:
> #if defined(__arm__)
>
> I’m guessing that they should all be the second form.
> Is that correct?
They both have the same effect when __arm__ is not defined, and the frontend is 
always going to define __arm__ to 1 on those systems, so it will work the same 
there too.

It would be nice to use one style consistently though...


Jon
>
> — Marshall
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-dev mailing list