public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59932] spurious undefined behavior warning on valid code
Date: Thu, 30 Jan 2014 01:38:00 -0000 [thread overview]
Message-ID: <bug-59932-4-CKIapC46EN@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59932-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59932
Zhendong Su <su at cs dot ucdavis.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Jakub Jelinek from comment #7)
> (In reply to Zhendong Su from comment #6)
> > Thanks for your explanation Jakub. It's more clear now, but I still don't
> > fully understand the difference in behavior from 4.8 to the current trunk.
> >
> > Is it because 4.8's support for warning undefined behaviors is weaker than
> > 4.9's, and with that enhanced support, 4.9 sometimes gives false warnings
> > like the one reported here?
>
> 4.8 only warned about this in later passes when the loops have been already
> constructed and preserved, so it wouldn't warn e.g. if it was cunrolli (as
> in this case) that found the undefined behavior. GCC 4.9 creates loops
> immediately after cfg is created and the warning is thus enabled much
> earlier. This means we warn in more cases when it is desirable to warn, but
> as this testcase shows also sometimes means there can be false positives.
> The loop with the undefined behavior is there for many passes, from cunrolli
> where it warns another 20 passes until dom1 is able to find out the code is
> dead.
Thanks
next prev parent reply other threads:[~2014-01-30 1:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 3:09 [Bug tree-optimization/59932] New: " su at cs dot ucdavis.edu
2014-01-24 3:20 ` [Bug tree-optimization/59932] " su at cs dot ucdavis.edu
2014-01-24 4:16 ` pinskia at gcc dot gnu.org
2014-01-24 20:49 ` su at cs dot ucdavis.edu
2014-01-28 16:20 ` jakub at gcc dot gnu.org
2014-01-28 18:15 ` su at cs dot ucdavis.edu
2014-01-28 21:45 ` jakub at gcc dot gnu.org
2014-01-30 1:38 ` su at cs dot ucdavis.edu [this message]
2014-01-30 1:40 ` su at cs dot ucdavis.edu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-59932-4-CKIapC46EN@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).