Fix m68k-hp-hpux8 problem for Manfred Holstein.
authorJim Wilson <wilson@cygnus.com>
Tue, 9 Sep 1997 01:34:17 +0000 (01:34 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 9 Sep 1997 01:34:17 +0000 (18:34 -0700)
* m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
cases, add %# and %/, and add : to make them into extended asms.

From-SVN: r15174

gcc/ChangeLog
gcc/config/m68k/m68k.h

index 48fd0a83c5356824994236cf2f95631c51f922c5..1196983dcaa379fdff9d76af2c2acbf13527963c 100644 (file)
@@ -1,3 +1,8 @@
+Mon Sep  8 18:26:35 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
+       cases, add %# and %/, and add : to make them into extended asms.
+
 Sun Sep  7 23:57:50 1997  Weiwen Liu  <liu@hepunix.physics.yale.edu>
 
        * alias.c (init_alias_analysis): Clean up incompatible pointer
index eadcee9e21b42dcde81f615c6d991a962f82847e..0ac38cb77971d4355129f72019cbeee3a105cef5 100644 (file)
@@ -1081,23 +1081,23 @@ while(0)
 #if defined(__mcf5200__)
 #define MACHINE_STATE_SAVE(id)         \
     {                                  \
-      asm ("subl 20,sp");              \
-      asm ("movml d0/d1/a0/a1,sp@(4)");        \
-      asm ("movew cc,d0");             \
-      asm ("movml d0,sp@");            \
+      asm ("subl %#20,%/sp" : );       \
+      asm ("movml %/d0/%/d1/%/a0/%/a1,%/sp@(4)" : ); \
+      asm ("movew %/cc,%/d0" : );      \
+      asm ("movml %/d0,%/sp@" : );     \
     }
 #else /* !__mcf5200__ */
 #if defined(MACHINE_STATE_m68010_up)
 #define MACHINE_STATE_SAVE(id)         \
     {                                  \
-      asm ("movew cc,sp@-");           \
-      asm ("moveml d0/d1/a0/a1,sp@-"); \
+      asm ("movew %/cc,%/sp@-" : );    \
+      asm ("moveml %/d0/%/d1/%/a0/%/a1,%/sp@-" : ); \
     }
 #else /* !MACHINE_STATE_m68010_up */
 #define MACHINE_STATE_SAVE(id)         \
     {                                  \
-      asm ("movew sr,sp@-");           \
-      asm ("moveml d0/d1/a0/a1,sp@-"); \
+      asm ("movew %/sr,%/sp@-" : );    \
+      asm ("moveml %/d0/%/d1/%/a0/%/a1,%/sp@-" : ); \
     }
 #endif /* MACHINE_STATE_m68010_up */
 #endif /* __mcf5200__ */
@@ -1134,16 +1134,16 @@ while(0)
 #if defined(__mcf5200__)
 #define MACHINE_STATE_RESTORE(id)      \
     {                                  \
-      asm ("movml sp@,d0");            \
-      asm ("movew d0,cc");             \
-      asm ("movml sp@(4),d0/d1/a0/a1");        \
-      asm ("addl 20,sp");              \
+      asm ("movml %/sp@,%/d0" : );     \
+      asm ("movew %/d0,%/cc" : );      \
+      asm ("movml %/sp@(4),%/d0/%/d1/%/a0/%/a1" : ); \
+      asm ("addl %#20,%/sp" : );       \
     }
 #else /* !__mcf5200__ */
 #define MACHINE_STATE_RESTORE(id)      \
     {                                  \
-      asm ("moveml sp@+,d0/d1/a0/a1"); \
-      asm ("movew sp@+,cc");           \
+      asm ("moveml %/sp@+,%/d0/%/d1/%/a0/%/a1" : ); \
+      asm ("movew %/sp@+,%/cc" : );    \
     }
 #endif /* __mcf5200__ */
 #endif /* MOTOROLA */