From: Alan Modra Date: Tue, 22 Mar 2016 03:50:18 +0000 (+1030) Subject: Binutils fails to build with -O0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f4c0a426c653867c40936a9b8f503628adbd64b;p=binutils-gdb.git Binutils fails to build with -O0 PR 19851 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 43c9c285df0..ffafbf631f6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2016-03-22 Alan Modra + + PR 19851 + * plugin.c (try_load_plugin): Avoid -Wstack-usage warning. + 2016-03-21 Andrew Burgess * archures.c (bfd_mach_arc_nps400): Define. diff --git a/bfd/plugin.c b/bfd/plugin.c index 82a87d6b7a5..f57833c1fb4 100644 --- a/bfd/plugin.c +++ b/bfd/plugin.c @@ -206,8 +206,7 @@ static int try_load_plugin (const char *pname, bfd *abfd, int *has_plugin_p) { void *plugin_handle; - int tv_size = 4; - struct ld_plugin_tv tv[tv_size]; + struct ld_plugin_tv tv[4]; int i; ld_plugin_onload onload; enum ld_plugin_status status;