[llvm-commits] [ASan] Make for-Windows RTL compileable using Clang++ (issue 6214063)

Kostya Serebryany kcc at google.com
Mon May 21 07:07:44 PDT 2012


On Mon, May 21, 2012 at 6:03 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> Hi Timur,
>
> > -#ifdef _WIN32
> > +#if defined(_WIN32) && !defined(__clang__)
> >  #include <intrin.h>
> >  #endif
> I think it should check for _MSC_VER here instead. And in many other
> places as well.
>
> >  #if defined(_WIN32)
> > +# if defined(__clang__)
> > +typedef int              intptr_t;
> > +typedef unsigned int     uintptr_t;
> > +# endif
> These should go from stddef.h. What's the problem with it?
>

It doesn't define what's needed. On windows these folks live somewhere
else.
Adding other system headers brings in too much stuff which makes further
porting efforts more complicated.
We've spend quite a bit of time geting rid of things like stdlib.h


>
> > +#if !defined(_WIN32) || defined(__clang__)
> So, on Win64 you will provide all this stuff regardless of compiler?
> This looks plain wrong.
>
> Same problems in other places.
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120521/7dd520dd/attachment.html>


More information about the llvm-commits mailing list