[cfe-dev] clang cannot compile ARM assembly in libcxxabi/src/Unwind ?

Jonathan Roelofs jonathan at codesourcery.com
Mon Aug 4 10:02:07 PDT 2014



On 8/4/14, 10:05 AM, Dan Albert wrote:
> Could
> https://github.com/llvm-mirror/libcxxabi/commit/a09f807da45a4f699c6b63542ef2d169ff278539
> be related?

Nope. These probably creeped in because the NDK folks are building with gcc, and 
I'm using -fno-integrated-as. I would be a happy camper if both -fintegrated-as 
and -fno-integrated-as both worked though...

If I remember correctly, these coprocessor synonyms were put in so that we could 
assemble these instructons even for chips that don't support them, making the 
multilib more universal.  What would it take to get IAS to understand this syntax?


Cheers,
Jon

>
>
> On Mon, Aug 4, 2014 at 5:41 AM, Renato Golin <renato.golin at linaro.org
> <mailto:renato.golin at linaro.org>> wrote:
>
>     Hi Ismail,
>
>     Don't remember to have seen this one before. Please fill a bug with
>     this, make it a dependency for 18926 and assign to me, I'll have a
>     look.
>
>     cheers,
>     --renato
>
>     On 4 August 2014 10:50, İsmail Dönmez <ismail at donmez.ws
>     <mailto:ismail at donmez.ws>> wrote:
>      > Hi,
>      >
>      > Trying to compile libcxxabi on ARM/Linux with clang ToT, I get:
>      >
>      > cd /home/ismail/libcxxabi/build/src/Unwind && /havana/dist/llvm/bin/clang
>      > -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
>      > -D__STDC_LIMIT_MACROS -fPIC -Werror=date-time -ffunction-sections
>      > -fdata-sections -I/home/ismail/libcxxabi/include
>      > -I/home/ismail/libcxx/include    -UNDEBUG -fPIC -o
>      > CMakeFiles/unwind.dir/UnwindRegistersRestore.S.o   -c
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:350:24: error:
>      > unknown token in expression
>      >   ldc p11, cr0, [r0], {#0x20} @ fldmiad r0, {d0-d15}
>      >                        ^
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:350:24: error:
>      > illegal expression
>      >   ldc p11, cr0, [r0], {#0x20} @ fldmiad r0, {d0-d15}
>      >                        ^
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:361:24: error:
>      > unknown token in expression
>      >   ldc p11, cr0, [r0], {#0x21} @ fldmiax r0, {d0-d15}
>      >                        ^
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:361:24: error:
>      > illegal expression
>      >   ldc p11, cr0, [r0], {#0x21} @ fldmiax r0, {d0-d15}
>      >                        ^
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:372:25: error:
>      > unknown token in expression
>      >   ldcl p11, cr0, [r0], {#0x20} @ vldm r0, {d16-d31}
>      >                         ^
>      > /home/ismail/libcxxabi/src/Unwind/UnwindRegistersRestore.S:372:25: error:
>      > illegal expression
>      >   ldcl p11, cr0, [r0], {#0x20} @ vldm r0, {d16-d31}
>      >                         ^
>      >
>      > This works with the gnu as (tested using -no-integrated-as). Is this a known
>      > problem?
>      >
>      > Thanks!
>      >
>      >
>      > _______________________________________________
>      > cfe-dev mailing list
>      > cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>
>      > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>      >
>
>     _______________________________________________
>     cfe-dev mailing list
>     cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>
>     http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
>
>
> _______________________________________________
> 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