This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/22612] New: check_dwarf64_offsets () always returns false
- From: "kryukov at frtk dot ru" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 15 Dec 2017 04:30:33 +0000
- Subject: [Bug build/22612] New: check_dwarf64_offsets () always returns false
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22612
Bug ID: 22612
Summary: check_dwarf64_offsets () always returns false
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: kryukov at frtk dot ru
Target Milestone: ---
Clang warns that 'true' is returned from check_dwarf64_offsets () only if
'unsigned int' is greater than (1 << 32) which is not possible if
sizeof(unsigned int) == 4:
> dwarf2read.c:26610:43: error: comparison of constant 4294967296 with expression
> of type 'typename std::underlying_type<sect_offset>::type'
> (aka 'unsigned int') is always false
> [-Werror,-Wtautological-constant-out-of-range-compare]
> if (to_underlying (per_cu.sect_off) >= (static_cast<uint64_t> (1) << 32))
> dwarf2read.c:26618:43: error: comparison of constant 4294967296 with expression
> of type 'typename std::underlying_type<sect_offset>::type'
> (aka 'unsigned int') is always false
> [-Werror,-Wtautological-constant-out-of-range-compare]
> if (to_underlying (per_cu.sect_off) >= (static_cast<uint64_t> (1) << 32))
--
You are receiving this mail because:
You are on the CC list for the bug.