public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sami dot kantoluoto at embedtronics dot fi" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/21171] Generates wrong code (w/ optimization) when copying data from a table to a table in a structure Date: Sat, 23 Apr 2005 08:45:00 -0000 [thread overview] Message-ID: <20050423084528.980.qmail@sourceware.org> (raw) In-Reply-To: <20050423081814.21171.sami.kantoluoto@embedtronics.fi> ------- Additional Comments From sami dot kantoluoto at embedtronics dot fi 2005-04-23 08:45 ------- Created an attachment (id=8714) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8714&action=view) objdump output of working version when compiled in thumb mode (-mthumb) Same problems in thumb mode. Attachment shows the objdump output of the _working_ version. Objdump output of non-working version is here: test.o: file format elf32-littlearm Disassembly of section .text: 00000000 <main>: 0: 4b03 ldr r3, [pc, #12] (10 <.text+0x10>) 2: 1c1a mov r2, r3 (add r2, r3, #0) 4: 3280 add r2, #128 6: 3304 add r3, #4 8: 4293 cmp r3, r2 a: d1fc bne 6 <main+0x6> c: 2000 mov r0, #0 e: 4770 bx lr 10: 0000 lsl r0, r0, #0 ... Disassembly of section .comment: 00000000 <.comment>: 0: 43434700 cmpmi r3, #0 ; 0x0 4: 4728203a undefined 8: 2029554e eorcs r5, r9, lr, asr #10 c: 2e302e34 mrccs 14, 1, r2, cr0, cr4, {1} As you can see, it does not even access the source table (non-thumb version does). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21171
next prev parent reply other threads:[~2005-04-23 8:45 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-04-23 8:18 [Bug c/21171] New: " sami dot kantoluoto at embedtronics dot fi 2005-04-23 8:31 ` [Bug c/21171] " sami dot kantoluoto at embedtronics dot fi 2005-04-23 8:45 ` sami dot kantoluoto at embedtronics dot fi [this message] 2005-04-23 13:29 ` [Bug target/21171] " pinskia at gcc dot gnu dot org 2005-04-26 18:35 ` [Bug tree-optimization/21171] [4.0 Regression] " rearnsha at gcc dot gnu dot org 2005-04-26 19:51 ` [Bug tree-optimization/21171] [4.0/4.1 " pinskia at gcc dot gnu dot org 2005-04-26 22:18 ` [Bug tree-optimization/21171] [4.0/4.1 Regression] IV OPTS removes does not create a new VOPs for constant values pinskia at gcc dot gnu dot org 2005-04-27 11:33 ` rakdver at gcc dot gnu dot org 2005-04-27 14:28 ` cvs-commit at gcc dot gnu dot org 2005-05-26 22:15 ` mmitchel at gcc dot gnu dot org 2005-06-02 14:35 ` pinskia at gcc dot gnu dot org 2005-06-13 19:24 ` cvs-commit at gcc dot gnu dot org 2005-06-13 19:43 ` 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=20050423084528.980.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).