[compiler-rt] r277300 - Fix ASan alloca_constant_size.cc test on FreeBSD.
Dimitry Andric via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 13:27:18 PDT 2016
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 at 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 at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160731/6ee18048/attachment.sig>
More information about the llvm-commits
mailing list