This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/22612] New: check_dwarf64_offsets () always returns false


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]