public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "filippo dot arcidiacono at gmail dot com" <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 09:29:00 -0000 [thread overview] Message-ID: <20070226092914.27317.qmail@sourceware.org> (raw) In-Reply-To: <bug-30936-14151@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from filippo dot arcidiacono at gmail dot com 2007-02-26 09:29 ------- Created an attachment (id=13112) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13112&action=view) assembler code of nanf-test.c Following a piece of the objdump of the nanf-test: : : int main (void) { 0: e6 2f mov.l r14,@-r15 2: 22 4f sts.l pr,@-r15 4: f8 7f add #-8,r15 6: f3 6e mov r15,r14 int op; op = (nanf ("") != nanf ("") ); 8: e3 62 mov r14,r2 a: c8 72 add #-56,r2 c: 00 e1 mov #0,r1 e: 1f 12 mov.l r1,@(60,r2) if (!op) { 10: e3 61 mov r14,r1 12: c8 71 add #-56,r1 14: 1f 51 mov.l @(60,r1),r1 16: 18 21 tst r1,r1 18: 08 8b bf 2c <main+0x2c> printf ("Test NAN Failed!\n"); 1a: 09 d1 mov.l 40 <main+0x40>,r1 ! 0x0 <main> 1c: 13 64 mov r1,r4 1e: 09 d1 mov.l 44 <main+0x44>,r1 ! 0x0 <main> 20: 0b 41 jsr @r1 22: 09 00 nop return (1); 24: 01 e1 mov #1,r1 26: 12 2e mov.l r1,@r14 28: 02 a0 bra 30 <main+0x30> 2a: 09 00 nop } : : Note that I using sh4 architecture. In attach you can find the nanf-test.s that doesn't contains any reference to nanf symbol. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30936
next prev parent reply other threads:[~2007-02-26 9:29 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 ` [Bug target/30936] " pinskia at gcc dot gnu dot org 2007-02-26 9:29 ` filippo dot arcidiacono at gmail dot com [this message] 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=20070226092914.27317.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).