diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2022-11-23 21:54:26 +0100 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2022-11-23 21:54:26 +0100 |
commit | 603af25815523ba9e39e9b441cde5308423a9238 (patch) | |
tree | eee3d0f94659299c547eed224f0c6efeb13cb382 /maintainer-scripts/ChangeLog | |
parent | 2eaa0cc45e8eae0fc4a440d28c602964bcb1014d (diff) | |
download | gcc-603af25815523ba9e39e9b441cde5308423a9238.zip gcc-603af25815523ba9e39e9b441cde5308423a9238.tar.gz gcc-603af25815523ba9e39e9b441cde5308423a9238.tar.bz2 |
analyzer: Use __builtin_alloca in gcc.dg/analyzer/call-summaries-2.c
gcc.dg/analyzer/call-summaries-2.c currently FAILs on Solaris:
FAIL: gcc.dg/analyzer/call-summaries-2.c (test for excess errors)
Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c:468:12:
warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/analyzer/call-summaries-2.c:468:12:
warning: incompatible implicit declaration of built-in function 'alloca' [-Wbuiltin-declaration-mismatch]
alloca is only declared in <alloca.h>, which isn't included indirectly
anywhere. To avoid this, I switched the test to use __builtin_alloca
instead, following the vast majority of analyzer tests that use alloca.
Tested no i386-pc-solaris2.11, sparc-sun-solaris2.11, and
x86_64-pc-linux-gnu.
2022-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
* gcc.dg/analyzer/call-summaries-2.c (uses_alloca): Use
__builtin_alloca instead of alloca.
Diffstat (limited to 'maintainer-scripts/ChangeLog')
0 files changed, 0 insertions, 0 deletions