This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] Do without on-stack variable length arrays.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 04 Sep 2015 13:51:59 -0700
- Subject: Re: [PATCH] Do without on-stack variable length arrays.
This is misstated. VLAs are a standard feature. What you're avoiding here
is VLA members of structs and unions, which are a GNU extension.
I also don't think you're doing it the ideal way. A union of two arrays of
length one is useless. It might trigger complaints from _FORTIFY_SOURCE
or other such bounds-checking tools.