public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57066] [4.7/4.8/4.9 Regression] std::logb(-inf) returns wrong value Date: Thu, 25 Apr 2013 08:05:00 -0000 [thread overview] Message-ID: <bug-57066-4-UJjzQeCMJP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-57066-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57066 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.1.3 Keywords| |wrong-code Last reconfirmed| |2013-04-25 Ever Confirmed|0 |1 Summary|std::logb(-inf) returns |[4.7/4.8/4.9 Regression] |wrong value |std::logb(-inf) returns | |wrong value Target Milestone|--- |4.7.4 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-25 08:05:04 UTC --- /* Fold a call to builtin logb/ilogb. */ static tree fold_builtin_logb (location_t loc, tree arg, tree rettype) { ... switch (value->cl) { case rvc_nan: case rvc_inf: /* If arg is Inf or NaN and we're logb, return it. */ if (TREE_CODE (rettype) == REAL_TYPE) return fold_convert_loc (loc, rettype, arg); is wrong for -inf. Folding introduced in 2007 thus a regression.
next prev parent reply other threads:[~2013-04-25 8:05 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-25 7:01 [Bug c++/57066] New: " bolero.murakami at gmail dot com 2013-04-25 8:05 ` rguenth at gcc dot gnu.org [this message] 2013-04-25 8:41 ` [Bug c++/57066] [4.7/4.8/4.9 Regression] " mpolacek at gcc dot gnu.org 2013-04-25 10:26 ` [Bug tree-optimization/57066] " mpolacek at gcc dot gnu.org 2013-04-25 11:47 ` mpolacek at gcc dot gnu.org 2013-04-25 13:43 ` mpolacek at gcc dot gnu.org 2013-04-25 15:52 ` mpolacek at gcc dot gnu.org 2013-04-25 15:52 ` mpolacek at gcc dot gnu.org 2013-05-03 8:55 ` [Bug tree-optimization/57066] [4.7/4.8 " mpolacek at gcc dot gnu.org 2013-05-03 8:59 ` mpolacek at gcc dot gnu.org 2013-05-03 8:59 ` mpolacek at gcc dot gnu.org
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-57066-4-UJjzQeCMJP@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: linkBe 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).