This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR opt/5172: Store motion vs. asm_operands


On Wed, Jan 16, 2002 at 01:05:49AM -0700, Roger Sayle wrote:
> My understanding is that both volatile and non-volatile asm statements
> may legitimately read from anywhere in memory (and that volatile reflects
> the asm's ability to write to, not read from, memory).

Incorrect.  No asm statement may implicitly read or write memory.
One must represent memory inputs, outputs, and clobbers properly.

Note that the easiest way to do this is with "memory" in the
clobber section of the extended asm statement.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]