mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH] arm assembly changes for clang compatibility
Date: Sat, 22 Nov 2014 16:09:54 -0500	[thread overview]
Message-ID: <20141122210954.GD29621@brightrain.aerifal.cx> (raw)
In-Reply-To: <de9e7ddf.dNq.dMV.1U.cxrGEd@mailjet.com>

On Sat, Nov 22, 2014 at 09:54:06PM +0100, Joakim Sindholt wrote:
> On Fri, 2014-11-07 at 08:26 -0500, Rich Felker wrote:
> > On Fri, Nov 07, 2014 at 11:48:05AM +0100, Joakim Sindholt wrote:
> > > On Fri, 2014-11-07 at 10:37 +0100, Luca Barbato wrote:
> > > > On 06/11/14 23:38, Joakim Sindholt wrote:
> > > > > +	.word 0xecbc8b10 /* vldmia ip!, {d8-d15} */
> > > > 
> > > > clang is already notified?
> > > > 
> > > > lu
> > > 
> > > I'm not sure what you mean. There isn't a bug in clang as it will
> > > happily accept "vldmia ip!, {d8-d15}". It just won't accept "ldc p11,
> > > cr8, [ip], #64" because that's not a legal instruction. Musl just uses
> > > it because it aliases to the former and gas won't complain about missing
> > > ARM features.
> > 
> > Yes, the problem is that we can't use the official mnemonic because
> > the assembler will reject it when the target model lacks fpu, and we
> > can't use the generic coprocessor mnemonic because ARM and clang
> > intentionally removed support for it. :(
> 
> Any chance of getting this committed or is there more work to be done
> and discussions to be had?
> 
> This is the only change needed to get musl working on ARM clang.

I think it's okay. It would be nice if we could find something that
didn't cause it to get marked as data rather than code in the .o file
(e.g. objdump shows it as .word instead of an instruction) but that's
not a huge problem if we can't. Since ARM overhaul is a big item for
this release cycle I'd like to get all the clang compatibility issues
for ARM fixed too. Do you know what clang version has the issue we're
working around in arch/arm/syscall_arch.h fixed so I can convert it to
a version check (instead of just #ifdef __clang) and start considering
a schedule for deprecating support for ancient clang?

Rich


      reply	other threads:[~2014-11-22 21:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1415313526-3350676-1-git-send-email-opensource@zhasha.com>
2014-11-06 22:38 ` Joakim Sindholt
2014-11-07  9:37   ` Luca Barbato
2014-11-07 10:48     ` Joakim Sindholt
2014-11-07 13:26       ` Rich Felker
2014-11-22 20:54         ` Joakim Sindholt
2014-11-22 21:09           ` Rich Felker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141122210954.GD29621@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).