From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH RFA] mi/mi-main.c: Don't use variable-length array extension Date: Mon, 09 Jul 2001 07:21:00 -0000 Message-id: <3B49BDD5.90803@cygnus.com> References: <1010709062833.ZM9934@ocotillo.lan> X-SW-Source: 2001-07/msg00198.html > These are probably obvious fixes, but I used alloca() which is > sometimes considered objectionable, so I decided to ask for approval. > I'm willing to rework the patch to use xmalloc(), make_cleanup(), etc, > but it will be messier. > > * mi-main.c (register_changed_p, get_register): Use alloca() > to allocate space previously allocated via gcc's > variable-length array extension. This is one of the uses of alloca that everyone has grown accustomed to. Andrew