Remove alloca(0) calls
authorTom Tromey <tromey@adacore.com>
Tue, 11 Jun 2019 12:59:38 +0000 (06:59 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 14 Jun 2019 13:00:27 +0000 (07:00 -0600)
commitabdb711e0855f0597a96db0486b598144b788212
treea21b7030c6416a8b0005220652616532f06d3ec8
parent9a9e394b05a841bdd9163f280d7ef19cc65634d6
Remove alloca(0) calls

PR gdb/24653 points out that a gcc snapshot will complain about the
calls to alloca(0) in gdb.

These calls are only needed when using the C alloca.  I'm inclined to
think that no current platform needs this, so this patch removes the
calls.

Let me know what you think.

gdb/ChangeLog
2019-06-14  Tom Tromey  <tromey@adacore.com>

PR gdb/24653:
* regcache.c (registers_changed): Don't call alloca.
* top.c (execute_command): Don't call alloca.
gdb/ChangeLog
gdb/regcache.c
gdb/top.c