public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/50078] New: [4.6.1+ SVN 2011-08-13] ARM wrong code: volatile accesses optimized out
@ 2011-08-14  0:57 khc at pm dot waw.pl
  2011-08-14  9:24 ` [Bug c/50078] " mikpe at it dot uu.se
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: khc at pm dot waw.pl @ 2011-08-14  0:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50078

             Bug #: 50078
           Summary: [4.6.1+ SVN 2011-08-13] ARM wrong code: volatile
                    accesses optimized out
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: khc@pm.waw.pl


I think armeb-pc-linux-gnueabi-gcc 4.6.2pre 20110813 (cross-compiled on x86-64)
is a bit too optimistic with -O2:

unsigned var[2];

void test(int arg)
{
    unsigned v = *(volatile unsigned *)(&var[arg]);
    *(volatile unsigned *)(&var[arg]) = v;
}

produces:
00000000 <test>:
   0:   e12fff1e        bx      lr


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-06-11  9:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-14  0:57 [Bug c/50078] New: [4.6.1+ SVN 2011-08-13] ARM wrong code: volatile accesses optimized out khc at pm dot waw.pl
2011-08-14  9:24 ` [Bug c/50078] " mikpe at it dot uu.se
2011-08-14  9:39 ` rguenth at gcc dot gnu.org
2011-08-15  9:14 ` [Bug rtl-optimization/50078] [4.6/4.7 Regression] combine " rguenth at gcc dot gnu.org
2011-08-15  9:16 ` rguenth at gcc dot gnu.org
2011-08-17 21:28 ` jsm28 at gcc dot gnu.org
2011-09-05 11:49 ` steven at gcc dot gnu.org
2011-09-11 15:18 ` steven at gcc dot gnu.org
2011-09-11 15:26 ` steven at gcc dot gnu.org
2011-09-11 15:44 ` steven at gcc dot gnu.org
2011-09-11 16:28 ` steven at gcc dot gnu.org
2011-10-26 17:58 ` jakub at gcc dot gnu.org
2011-11-28  9:49 ` [Bug tree-optimization/50078] " jakub at gcc dot gnu.org
2011-11-28 21:10 ` jakub at gcc dot gnu.org
2011-11-28 21:11 ` [Bug tree-optimization/50078] [4.6 " jakub at gcc dot gnu.org
2011-12-09 11:34 ` jakub at gcc dot gnu.org
2011-12-10 16:40 ` mikpe at it dot uu.se
2011-12-12 17:38 ` jakub at gcc dot gnu.org
2012-06-11  9:51 ` xguo at gcc dot gnu.org

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).