Re: [PATCH] gdb: use std::vector instead of alloca in core_target::get_core_register_section

Simon Marchi
2020-01-13T16:54:17Z

On 2020-01-13 5:00 a.m., Andreas Schwab wrote:
> On Jan 12 2020, Simon Marchi wrote:
>
>> Hmm, I don't really know. I presumed that it's just that this warning was enabled in gcc
>> by default on m68k,
>
> No target alters the warning's default. That must be your local
> customization.

Ok, then I have no clue why I see this only on m68k. For reference, when I use
this command line (where I removed all -W flags except -Werror), I still see
the warning:

m68k-linux-gnu-g++ -x c++ -g -O2 -I. -I/binutils-gdb/gdb -I/binutils-gdb/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I/binutils-gdb/gdb/../include/opcode -I/binutils-gdb/gdb/../readline/readline/.. -I/binutils-gdb/gdb/../zlib -I../bfd -I/binutils-gdb/gdb/../bfd -I/binutils-gdb/gdb/../include -I../libdecnumber -I/binutils-gdb/gdb/../libdecnumber -I/binutils-gdb/gdb/../gnulib/import -I../gnulib/import -I/binutils-gdb/gdb/.. -pthread -Werror -c -o corelow.o -MT corelow.o -MMD -MP -MF ./.deps/corelow.Tpo /binutils-gdb/gdb/corelow.c

Simon