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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

cvs-commit at gcc dot gnu.org
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.
Reply | Threaded
Open this post in threaded view
|

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

cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22612

Pavel I. Kryukov <kryukov at frtk dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at sourceware dot org

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22612

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Context:
 https://sourceware.org/ml/gdb-patches/2017-12/msg00276.html

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22612

Pavel I. Kryukov <kryukov at frtk dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.marchi at ericsson dot com

--- Comment #2 from Pavel I. Kryukov <kryukov at frtk dot ru> ---
Patch by Simon Marchi: https://sourceware.org/bugzilla/show_bug.cgi?id=22612

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

cvs-commit at gcc dot gnu.org
In reply to this post by cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22612

--- Comment #3 from Pavel I. Kryukov <kryukov at frtk dot ru> ---
Sorry, wrong link. The correct one:
https://sourceware.org/ml/gdb-patches/2017-12/msg00530.html

--
You are receiving this mail because:
You are on the CC list for the bug.