]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Get rid of -Wodr warning (PR build/23399)
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 28 Aug 2018 17:29:32 +0000 (13:29 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 28 Aug 2018 21:23:16 +0000 (17:23 -0400)
commitad202fcc2277f351d41d4d4e897ad4f6d7c9f043
treec26bf79e57c584e66195e2527eb5033224ba2b97
parentead9aa39bfc80007336bc96c6374df7f79341485
Get rid of -Wodr warning (PR build/23399)

The PR reports that building with -Wodr -flto complains about different
versions of struct ipa_sym_addresses, in common/agent.c and
gdbserver/tracepoint.c.  This patch renames the version in common to
ipa_sym_addresses_common to avoid the name clash.  Because the IPA_SYM
assumed the name ipa_sym_addresses, it now requires the includer to
define the IPA_SYM_STRUCT_NAME macro to define the name of the structure
holding the IPA symbol addresses.

gdb/ChangeLog:

PR build/23399
* common/agent.c (IPA_SYM_STRUCT_NAME): Define.
(struct ipa_sym_addresses): Rename to...
(struct ipa_sym_addresses_common): ... this.
* common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.

gdb/gdbserver/ChangeLog:

PR build/23399
* tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
gdb/ChangeLog
gdb/common/agent.c
gdb/common/agent.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c