Re: [PATCH] libiberty: Don't use VLAs if __STDC_NO_VLA__ is non-zero

2019-05-31 Thread Jeff Law
On 5/30/19 2:50 PM, Michael Forney wrote: > VLAs are optional in C11, and an implementation that does not support > them will define __STDC_NO_VLA__ to 1. > > 2019-05-30 Michael Forney > > * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__ > is non-zero. THanks. I'

[PATCH] libiberty: Don't use VLAs if __STDC_NO_VLA__ is non-zero

2019-05-30 Thread Michael Forney
VLAs are optional in C11, and an implementation that does not support them will define __STDC_NO_VLA__ to 1. 2019-05-30 Michael Forney * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__ is non-zero. --- libiberty/cp-demangle.c | 4 ++-- 1 file changed, 2 insert