public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marc.glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/49914] New: call to abs(long long) in gcc/fold-const.c Date: Sat, 30 Jul 2011 18:13:00 -0000 [thread overview] Message-ID: <bug-49914-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49914 Summary: call to abs(long long) in gcc/fold-const.c Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned@gcc.gnu.org ReportedBy: marc.glisse@normalesup.org Hello, in gcc/fold-const.c (currently line 7051), in function fold_plusminus_mult_expr: if (exact_log2 (abs (int11)) > 0 && int01 % int11 == 0 where int11 is a HOST_WIDE_INT. Is this call to abs safe? A few lines above, abs is computed as x>=0?x:-x. (don't know how to classify this, but it causes a build failure for me with a C++98 compiler (ambiguous))
next reply other threads:[~2011-07-30 18:13 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-30 18:13 marc.glisse at normalesup dot org [this message] 2011-07-30 18:29 ` [Bug other/49914] " marc.glisse at normalesup dot org 2011-07-31 9:46 ` [Bug bootstrap/49914] " rguenth at gcc dot gnu.org 2011-08-01 16:37 ` paolo.carlini at oracle dot com 2011-08-01 16:45 ` joseph at codesourcery dot com 2011-08-01 16:57 ` paolo.carlini at oracle dot com 2011-08-01 17:21 ` paolo.carlini at oracle dot com 2011-08-01 19:48 ` paolo.carlini at oracle dot com 2011-08-02 8:41 ` rguenther at suse dot de 2011-08-02 8:43 ` rguenther at suse dot de 2011-08-02 12:33 ` joseph at codesourcery dot com 2011-08-02 20:28 ` paolo at gcc dot gnu.org 2011-08-02 20:32 ` paolo.carlini at oracle dot com
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-49914-4@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).