diff options
author | Sergei Trofimovich <siarheit@google.com> | 2019-03-17 22:27:31 +0000 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2019-03-18 00:01:13 -0400 |
commit | 58785d9888c699770154ef1d42fcea7598e8d704 (patch) | |
tree | 2cdae25ad023bee39c3168ffbd55ea29e52b75e9 /binutils/objdump.c | |
parent | a716e60cf91254811f798d358a5b1842b4a65113 (diff) | |
download | gdb-58785d9888c699770154ef1d42fcea7598e8d704.zip gdb-58785d9888c699770154ef1d42fcea7598e8d704.tar.gz gdb-58785d9888c699770154ef1d42fcea7598e8d704.tar.bz2 |
gdb: unconditionally define _initialize_string_view_selftests
The build failure was noticed by Helmut Jarausch in
https://bugs.gentoo.org/680232:
$ ./configure CXXFLAGS='-std=c++17 -Os'
...
CXXLD gdb
ld: init.o: in function `initialize_all_files()':
init.c:(.text+0x113): undefined reference to `_initialize_string_view_selftests()'
It happens because '_initialize_string_view_selftests()' is
conditionally defined based on C++ default.
The change defines '_initialize_string_view_selftests()'
unconditionally and leaves implementation a no-op on c++17
compilers.
gdb/ChangeLog:
2019-03-17 Sergei Trofimovich <siarheit@google.com>
* unittests/string_view-selftests.c: Define
_initialize_string_view_selftests unconditionally.
Diffstat (limited to 'binutils/objdump.c')
0 files changed, 0 insertions, 0 deletions