mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Richard Pennington <rich@pennware.com>
To: musl@lists.openwall.com
Subject: Re: A little more progress today with clang/LLVM
Date: Sat, 26 May 2012 06:39:25 -0500	[thread overview]
Message-ID: <11654110.pFvND7RYFl@main.pennware.com> (raw)
In-Reply-To: <20292255.R6gnMuUDLb@main.pennware.com>

On Saturday, May 26, 2012 06:30:15 AM Richard Pennington wrote:
> On Friday, May 25, 2012 07:09:38 PM Rich Felker wrote:
> > On Fri, May 25, 2012 at 01:56:56PM -0500, Richard Pennington wrote:
> > > I've done a little hacking on alltypes.h.sh which I'm in the process of
> > > 
> > > testing. I have two goals:
> > > 	1. Make it work with clang's headers.
> > 
> > Can you explain what the issue is? Are you talking about issues
> > building clang itself, or building programs against musl using clang?
> > In the latter case, musl does not use or support using
> > compiler-provided headers. All of the standard headers are provided
> > fully by musl.
> 
> This is good to know. I'll stop using the compiler supplied headers.
> 
[snip]

Which reminds me why I went down the supplied header path in the first place.  
My tgmath.h test cases fail, for example (f is a float, d is a double):

../../../../../src/libs/math/001tgmath.c:15:7: error: assigning to 'float' from 
incompatible type 'typeof (*(0
      ? (typeof (0 ? (double *)0 : (void *)!!((1 ? 1 : ((f))) / 2)))0 : 
(typeof (0 ? (typeof ((f)) *)0 :
      (void *)!!!((1 ? 1 : ((f))) / 2)))0))' (aka 'void')
    f = acos(f);
      ^ ~~~~~~~
../../../../../src/libs/math/001tgmath.c:16:7: error: assigning to 'double' 
from incompatible type 'typeof    
      (*(0 ? (typeof (0 ? (double *)0 : (void *)!!((1 ? 1 : ((d))) / 2)))0 : 
(typeof (0 ? (typeof ((d)) *)0 :
      (void *)!!!((1 ? 1 : ((d))) / 2)))0))' (aka 'void')
    d = acos(d);
      ^ ~~~~~~~

-Rich


  reply	other threads:[~2012-05-26 11:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-22  1:47 Richard Pennington
2012-05-22  1:59 ` Rich Felker
2012-05-22  2:35   ` Richard Pennington
2012-05-22  2:53     ` Rich Felker
2012-05-22  3:24       ` Richard Pennington
2012-05-25 18:56   ` Richard Pennington
2012-05-25 23:09     ` Rich Felker
2012-05-26 11:30       ` Richard Pennington
2012-05-26 11:39         ` Richard Pennington [this message]
2012-05-26 12:49           ` Szabolcs Nagy
2012-05-26 11:59         ` Richard Pennington

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=11654110.pFvND7RYFl@main.pennware.com \
    --to=rich@pennware.com \
    --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).