public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd
@ 2018-12-07 20:48 sergiodj+buildbot
  2018-12-07 20:54 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: sergiodj+buildbot @ 2018-12-07 20:48 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT 8bebfcda34f2ea883fa6b87e748ad8a5f72b352f ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 8bebfcda34f2ea883fa6b87e748ad8a5f72b352f

Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd

Building for x86_64/-m32 with --enable-64-bit-bfd, compilation fails
with:

 src/gdb/dwarf2read.c: In instantiation of gdb::array_view<const unsigned char> get_gdb_index_contents_from_section(objfile*, T*) [with T = dwarf2_per_objfile]:
 src/gdb/dwarf2read.c:6266:54:   required from here
 src/gdb/dwarf2read.c:6192:37: error: narrowing conversion of section->dwarf2_section_info::size from bfd_size_type {aka long long unsigned int} to size_t {aka unsigned int} inside { } [-Werror=narrowing]
    return {section->buffer, section->size};
			     ~~~~~~~~~^~~~

This fixes it.

gdb/ChangeLog:
2018-12-07  Pedro Alves  <palves@redhat.com>

	* dwarf2read.c (get_gdb_index_contents_from_section): Use
	gdb::make_array_view.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-12-07 22:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07 20:48 [binutils-gdb] Fix gdb build on 32-bit hosts w/ --enable-64-bit-bfd sergiodj+buildbot
2018-12-07 20:54 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
2018-12-07 20:56 ` Failures on Fedora-i686, " sergiodj+buildbot
2018-12-07 21:03 ` Failures on Debian-s390x-native-extended-gdbserver-m64, " sergiodj+buildbot
2018-12-07 21:17 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot
2018-12-07 21:20 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, " sergiodj+buildbot
2018-12-07 21:31 ` Failures on Debian-s390x-native-gdbserver-m64, " sergiodj+buildbot
2018-12-07 21:39 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj+buildbot
2018-12-07 21:52 ` Failures on Fedora-x86_64-m64, " sergiodj+buildbot
2018-12-07 21:53 ` Failures on Fedora-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2018-12-07 21:55 ` Failures on Debian-s390x-m64, " sergiodj+buildbot
2018-12-07 22:03 ` Failures on Fedora-x86_64-m32, " sergiodj+buildbot
2018-12-07 22:23 ` Failures on Ubuntu-Aarch64-native-gdbserver-m64, " sergiodj+buildbot
2018-12-07 22:37 ` Failures on Fedora-x86_64-native-gdbserver-m32, " sergiodj+buildbot
2018-12-07 22:38 ` Failures on Ubuntu-Aarch64-m64, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).