public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/30936] const attribute in nanf prototype causes gcc not producing correct code. Date: Mon, 26 Feb 2007 08:21:00 -0000 [thread overview] Message-ID: <20070226082148.11493.qmail@sourceware.org> (raw) In-Reply-To: <bug-30936-14151@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from pinskia at gcc dot gnu dot org 2007-02-26 08:21 ------- No, the const attribute does not cause to produce wrong code. On powerpc-darwin with your testcase, I get: mflr r0 lis r3,ha16(LC0) la r3,lo16(LC0)(r3) stw r0,8(r1) stwu r1,-64(r1) bl _nanf li r3,0 fcmpu cr7,f1,f1 bne- cr7,L5 You can see the floating point compare happens but only one call to nanf. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30936
next prev parent reply other threads:[~2007-02-26 8:21 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-02-23 15:39 [Bug c/30936] New: " filippo dot arcidiacono at gmail dot com 2007-02-23 15:43 ` [Bug c/30936] " filippo dot arcidiacono at gmail dot com 2007-02-23 17:39 ` pinskia at gcc dot gnu dot org 2007-02-26 8:08 ` filippo dot arcidiacono at gmail dot com 2007-02-26 8:21 ` pinskia at gcc dot gnu dot org [this message] 2007-02-26 9:29 ` [Bug target/30936] " filippo dot arcidiacono at gmail dot com 2007-02-26 9:52 ` [Bug target/30936] __builtin_nanf("") != __builtin_nanf("") is false for sh4-linux-gnu pinskia at gcc dot gnu dot org 2007-02-26 13:01 ` filippo dot arcidiacono at gmail dot com 2007-02-26 18:02 ` pinskia at gcc dot gnu dot 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=20070226082148.11493.qmail@sourceware.org \ --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).