[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-commits
Subject:    Re: [compiler-rt] r277300 - Fix ASan alloca_constant_size.cc test on FreeBSD.
From:       Dimitry Andric via llvm-commits <llvm-commits () lists ! llvm ! org>
Date:       2016-07-31 20:27:18
Message-ID: A9595BB2-381E-4895-A7EA-CF4D24ED6EF5 () andric ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi Hans,

I would like to merge this one to release_39, since it fixes a test compilation \
failure on FreeBSD.

-Dimitry

> On 31 Jul 2016, at 22:16, Dimitry Andric via llvm-commits \
> <llvm-commits@lists.llvm.org> wrote: 
> Author: dim
> Date: Sun Jul 31 15:16:59 2016
> New Revision: 277300
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=277300&view=rev
> Log:
> Fix ASan alloca_constant_size.cc test on FreeBSD.
> 
> On FreeBSD <alloca.h> does not exist: alloca(3) is defined in <stdlib.h>
> instead.
> 
> Modified:
> compiler-rt/trunk/test/asan/TestCases/alloca_constant_size.cc
> 
> Modified: compiler-rt/trunk/test/asan/TestCases/alloca_constant_size.cc
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/alloca_constant_size.cc?rev=277300&r1=277299&r2=277300&view=diff
>  ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/alloca_constant_size.cc (original)
> +++ compiler-rt/trunk/test/asan/TestCases/alloca_constant_size.cc Sun Jul 31 \
> 15:16:59 2016 @@ -10,6 +10,8 @@
> // MSVC provides _alloca instead of alloca.
> #if defined(_MSC_VER) && !defined(alloca)
> # define alloca _alloca
> +#elif defined(__FreeBSD__)
> +#include <stdlib.h>
> #else
> #include <alloca.h>
> #endif
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


["signature.asc" (signature.asc)]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAleeXyoACgkQsF6jCi4glqOU3QCgm1CeEGo7IWOA8CTliqaY/yOC
tb4AoLJAbKfPe/wywARr7lECK6APMcFP
=P23Y
-----END PGP SIGNATURE-----

[Attachment #6 (text/plain)]

_______________________________________________
llvm-commits mailing list
llvm-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic