head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2020.01.26.00.21.16; author jmcneill; state dead; branches; next 1.1; commitid WmJwruHbRTE8j8UB; 1.1 date 2020.01.25.14.38.51; author jmcneill; state Exp; branches; next ; commitid a6mAUCtnrSOe55UB; desc @@ 1.2 log @Replace alloca patches with USE_LANGUAGES=gnu++11, suggested by joerg @ text @$NetBSD: patch-neo_renderer_Image__init.cpp,v 1.1 2020/01/25 14:38:51 jmcneill Exp $ Use the _alloca define from neo/sys/platform.h --- neo/renderer/Image_init.cpp.orig 2018-12-15 04:49:59.000000000 +0000 +++ neo/renderer/Image_init.cpp @@@@ -1197,7 +1197,7 @@@@ void R_ListImages_f( const idCmdArgs &ar totalSize = 0; - sortedImage_t *sortedArray = (sortedImage_t *)alloca( sizeof( sortedImage_t ) * globalImages->images.Num() ); + sortedImage_t *sortedArray = (sortedImage_t *)_alloca( sizeof( sortedImage_t ) * globalImages->images.Num() ); for ( i = 0 ; i < globalImages->images.Num() ; i++ ) { image = globalImages->images[ i ]; @ 1.1 log @Use __builtin_alloca instead of alloca. Fixes build w/ gcc8. @ text @d1 1 a1 1 $NetBSD$ @