This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: use std::vector instead of alloca in core_target::get_core_register_section
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Christian Biesinger <cbiesinger at google dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 13 Jan 2020 11:54:02 -0500
- Subject: Re: [PATCH] gdb: use std::vector instead of alloca in core_target::get_core_register_section
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 00DGs34W011729
- References: <20200112201729.489317-1-simon.marchi@polymtl.ca> <CAPTJ0XEekeX_GAmjbFugZKsLyORiObTEeTxoL=Xj7DtEUW3A-A@mail.gmail.com> <2131f829-e84a-c45b-06b5-e3ec79a3344c@polymtl.ca> <87v9pfwua8.fsf@igel.home>
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