[compiler-rt] r277300 - Fix ASan alloca_constant_size.cc test on FreeBSD.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 13:49:49 PDT 2016


Go ahead (or let me know if you'd prefer me to do it).

Cheers,
Hans

On Sun, Jul 31, 2016 at 1:27 PM, Dimitry Andric <dimitry at andric.com> wrote:
> 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
>


More information about the llvm-commits mailing list