]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Compile asan_test.C with -Wno-alloc-size-larger-than
authorUros Bizjak <ubizjak@gmail.com>
Thu, 5 Mar 2020 16:53:03 +0000 (17:53 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 5 Mar 2020 16:53:03 +0000 (17:53 +0100)
commit8f34b644549649e8f9b8043b07679eeac2147ff5
treea08cd6c3d87507acaa4cae83cdf43f3d35be6592
parent9ca4280a921b0094c7ef131c5c8a63b451ab9a05
testsuite: Compile asan_test.C with -Wno-alloc-size-larger-than

asan_test.cc tries to allocate 0xf0000000 bytes for 32bit targets in
a disabled DISABLED_DemoOOM test.  Since the testcase is compiled with
-Werror, the compilation fails with:

error: argument 1 value '4026531840' exceeds maximum object size 2147483647

Compile with -Wno-alloc-size-larger-than to avoid compilation failure.

* g++.dg/asan/asan_test.C (dg-options): Add
-Wno-alloc-size-larger-than.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/asan_test.C