This is the mail archive of the gcc-bugs@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]

Re: mips64 target erroneously reorders "asm"


   Date: Fri, 3 Oct 1997 15:50:24 -0400
   From: Paul Koning <pkoning@xedia.com>

   I have some code that, in a nutshell, does the following:

	   asm("foo");
	   <some operations on volatile data>
	   asm("bar");

   The resulting mips code has the "asm" operations reordered with
   respect to the volatile data operations they enclose.  Clearly this is
   not correct, and, for example, the sparc-solaris2.4 target (which is
   my host) does it right.

What happens if you use asm volatile?
	   asm volatile ("foo");

Ian


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