[LLVMdev] bug or expected behaviour?

Carl Norum carl at lytro.com
Tue Jun 4 22:02:12 PDT 2013


On Jun 4, 2013, at 5:28 PM, Carl Norum <carl at lytro.com> wrote:

> 
> On Jun 4, 2013, at 5:20 PM, Tyler Hardin <tghardin1 at catamount.wcu.edu> wrote:
> 
>> I tried the "extern" specifier, which (I guess) you should use if the definition isn't in the file; and it worked with -O3.
> 
> That 'extern' doesn't do anything - it's implicit.  Did you try without it and get different results?  In my test here with the Mac OS X dev tools version of clang, I got the expected results, both for x86 and for ARM.  I guess it's possible it's ARM related.  What version of clang/llvm did you use for your test?


Nope - rebuilding clang/llvm to get intel support shows the same behaviour with both '-arch i386' and '-arch x86_64', too.

-- Carl





More information about the llvm-dev mailing list