public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/44492]  New: auto-inc-dec pushes PRE_MODIFY/PRE_INC into inline asm operands
@ 2010-06-10  9:31 jakub at gcc dot gnu dot org
  2010-06-10  9:34 ` [Bug middle-end/44492] " pinskia at gcc dot gnu dot org
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-10  9:31 UTC (permalink / raw)
  To: gcc-bugs

struct T { const char *p; };
struct S { T a, b, c; unsigned d; };
void bar (const T &, const T &);

void
foo (S &s, T e)
{
  const char *a = e.p;
  const char *b = s.b.p;
  __asm__ volatile ("/* %0 %1 */" : : "rm" (a), "rm" (b));
  bar (e, s.b);
}

has PRE_MODIFY and PRE_INC in MEM operands of ASM_OPERANDS.  I can't see how
that can be right - there is no guarantee that the operand is used in the asm
at all, and even when it is used, it would have to be used in a load or store
with update insn.


-- 
           Summary: auto-inc-dec pushes PRE_MODIFY/PRE_INC into inline asm
                    operands
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


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


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

end of thread, other threads:[~2010-08-13 12:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-10  9:31 [Bug middle-end/44492] New: auto-inc-dec pushes PRE_MODIFY/PRE_INC into inline asm operands jakub at gcc dot gnu dot org
2010-06-10  9:34 ` [Bug middle-end/44492] " pinskia at gcc dot gnu dot org
2010-06-10  9:45 ` jakub at gcc dot gnu dot org
2010-06-10  9:48 ` pinskia at gcc dot gnu dot org
2010-06-10 10:12 ` schwab at linux-m68k dot org
2010-06-10 10:25 ` jakub at gcc dot gnu dot org
2010-06-10 10:59 ` schwab at linux-m68k dot org
2010-06-10 11:06 ` schwab at linux-m68k dot org
2010-06-10 11:37 ` jakub at gcc dot gnu dot org
2010-06-10 11:51 ` schwab at linux-m68k dot org
2010-06-10 12:11 ` fche at redhat dot com
2010-06-10 12:25 ` jakub at gcc dot gnu dot org
2010-06-10 12:27 ` matz at gcc dot gnu dot org
2010-06-10 12:39 ` schwab at linux-m68k dot org
2010-06-10 12:43 ` schwab at linux-m68k dot org
2010-06-10 12:46 ` schwab at linux-m68k dot org
2010-06-10 13:24 ` fche at redhat dot com
2010-06-10 13:34 ` matz at gcc dot gnu dot org
2010-06-10 15:11 ` schwab at linux-m68k dot org
2010-06-10 15:19 ` schwab at linux-m68k dot org
2010-06-10 15:23 ` jakub at gcc dot gnu dot org
2010-06-10 17:07 ` jakub at gcc dot gnu dot org
2010-06-11 13:23 ` jakub at gcc dot gnu dot org
2010-06-24 17:48 ` jakub at gcc dot gnu dot org
2010-08-13 12:48 ` jakub at gcc dot gnu dot 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).