public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18732] New: tautological-compare warning breaks build
@ 2015-07-29  9:08 lukeallardyce at gmail dot com
  2015-07-29  9:16 ` [Bug gdb/18732] " palves at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: lukeallardyce at gmail dot com @ 2015-07-29  9:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18732

            Bug ID: 18732
           Summary: tautological-compare warning breaks build
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: lukeallardyce at gmail dot com
  Target Milestone: ---

A new warning was recently added to GCC trunk (tautological-compare, also
available on Clang) which caused the following line in doublest.c to break the
build

391   if (dfrom != dfrom)               /* Result is NaN */

adding -Wno-tautological-compare to CFLAGS fixes it for now.

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


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

* [Bug gdb/18732] tautological-compare warning breaks build
  2015-07-29  9:08 [Bug gdb/18732] New: tautological-compare warning breaks build lukeallardyce at gmail dot com
@ 2015-07-29  9:16 ` palves at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: palves at redhat dot com @ 2015-07-29  9:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=18732

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |palves at redhat dot com
         Resolution|---                         |INVALID

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
This is a GCC bug.

It was a mistake for that warning to warn on floats, as self comparison is the
standard NaN check.  Upstream GCC is going to disable the warning for floats:

 https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02399.html

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


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

end of thread, other threads:[~2015-07-29  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29  9:08 [Bug gdb/18732] New: tautological-compare warning breaks build lukeallardyce at gmail dot com
2015-07-29  9:16 ` [Bug gdb/18732] " palves at redhat dot com

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).