This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building newlib for Cortex-M with LLVM




On 11/11/15 4:16 PM, Olivier MARTIN wrote:
Hello all,
recently I found a warning generated by Clang while building my project
that is based on Newlib (see
https://sourceware.org/ml/newlib/2015/msg00714.html).

I was curious... and I was wondering whether I could build newlib with
Clang.
snip

* The second issue is what I believe to be a Clang issue. Clang does not
support when macros are defined into inline assembly and used later on.
Assembly macros are quite used in the ARM string functions (eg:
'RETURN', 'optpld' macros).
I raised a Clang bug for this one:
https://llvm.org/bugs/show_bug.cgi?id=25495

This one is very unlikely to get fixed in clang. I ran into this same exact thing about a year ago... now I feel bad for not upstreaming the patches for it. Attached is what I was able to dig out of version control, HTH.


Jon


Any feedback or comment on my investigation are welcome. I am quite
happy to try few things.

Thanks,

---
Olivier MARTIN
http://labapart.com - Lab A Part

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

Attachment: newlib-fix-for-clang-integrated-as.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]