linux-user/mmap build failure using Clang 10

Bug #1878628 reported by Philippe Mathieu-Daudé
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

When building with Clang 10 on Fedora 32, we get:

    CC linux-user/mmap.o
  linux-user/mmap.c:720:49: error: result of comparison 'unsigned long' > 18446744073709551615 is always false [-Werror,-Wtautological-type-limit-compare]
          if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~

Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote :

Suggested fix: Use -Wno-tautological-type-limit-compare in configure:

https://<email address hidden>/msg699808.html

Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote :
Changed in qemu:
status: New → In Progress
Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote :

Merged as commit aabab96797a7d61989c25a7ca2b094591bbc74f9.

Changed in qemu:
status: In Progress → Fix Committed
Thomas Huth (th-huth)
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.