From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 11 Sep 2014 17:43:16 +0200 Subject: [U-Boot] [PATCH v3 0/8] add clang support for some ARM boards In-Reply-To: <1410434240.21166.21.camel@yellow> References: <1406750096-7281-1-git-send-email-jeroen@myspectrum.nl> <1410372532-8106-1-git-send-email-jeroen@myspectrum.nl> <1410434240.21166.21.camel@yellow> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jeroen, Correction on the asm stuff: On Thu, 11 Sep 2014 13:17:20 +0200, Jeroen Hofstee wrote: > > clang errors on arch/arm/lib/cache.c:28 for this: > > asm("0: mrc p15, 0, r15, c7, c10, 3\n\t" "bne 0b\n" : : : "memory"); > > and that is a clang mistake, as for ARM926EJS r15 is a valid (albeit > > quite special semantically) Rd for Test and Clean DCache, see page 2-24. > > > > This is the integrated-as complaining (the README tells you to disable > it for the moment). The clang folks push UAL hard, up to a point we need > to think about minimum gcc version etc. To avoid that, I just left out > such changes and just use gas instead, at least for the time being. > Below are some changes to compile versatileqemu with llvm integrated-as > and gcc/gas. No idea if it actually boots though. Actually, I had the -no-integrated-as then and have just re-tested now, making sure I have it and get the error above. For some reason, despite the -no-integrated-as option, the internal assembler is invoked. Amicalement, -- Albert.