public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38470]  New: Feature request: smarter signed/unsigned warning
@ 2008-12-10 10:35 m dot j dot thayer at googlemail dot com
  2008-12-10 10:38 ` [Bug c/38470] " m dot j dot thayer at googlemail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: m dot j dot thayer at googlemail dot com @ 2008-12-10 10:35 UTC (permalink / raw)
  To: gcc-bugs

This is a request to drop the signed/unsigned comparison warning if the
compiler can clearly see that the unsigned value is positive.  E.g. in the
following case:

if (foo >= 0 && foo < sizeof(bar)) ...

This would avoid the need for a typecase.  Please correct me if this is still
not safe for other reasons.


-- 
           Summary: Feature request: smarter signed/unsigned warning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: m dot j dot thayer at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38470


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

end of thread, other threads:[~2010-02-24 14:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-10 10:35 [Bug c/38470] New: Feature request: smarter signed/unsigned warning m dot j dot thayer at googlemail dot com
2008-12-10 10:38 ` [Bug c/38470] " m dot j dot thayer at googlemail dot com
2010-02-24 13:16 ` manu at gcc dot gnu dot org
2010-02-24 13:17 ` manu at gcc dot gnu dot org
2010-02-24 14:00 ` paolo dot carlini at oracle dot com
2010-02-24 14:04 ` [Bug c/38470] dataflow would improve -Wsign-compare manu at gcc dot gnu dot org
2010-02-24 14:07 ` m dot j dot thayer at googlemail dot com
2010-02-24 14:11 ` [Bug c/38470] value range propagation (VRP) " manu at gcc dot gnu dot org
2010-02-24 14:13 ` manu at gcc dot gnu dot org
2010-02-24 14:17 ` m dot j dot thayer at googlemail 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).