*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Thu, 20 Feb 1992 07:32:14 +0000 (07:32 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 20 Feb 1992 07:32:14 +0000 (07:32 +0000)
From-SVN: r349

gcc/config/m68k/hp320.h
gcc/reload1.c

index ceb8d97a0cb02d082a2366f05b465e773722121b..26afaff89c7ace6673be5744bed36e1d0337a515 100644 (file)
@@ -36,6 +36,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Be compatible with system stddef.h.  */
 #define SIZE_TYPE "unsigned int"
 
+/* Use atexit for static constructors/destructors, instead of defining
+   our own exit function.  */
+#define HAVE_ATEXIT
+
 #include "m68k.h"
 
 /* See m68k.h.  7 means 68020 with 68881.  */
@@ -375,6 +379,8 @@ do{  if (PREFIX[0] == 'L' && PREFIX[1] == 'I')              \
   else if (CODE == '+') fprintf (FILE, "(%%sp)+");                     \
   else if (CODE == '@') fprintf (FILE, "(%%sp)");                      \
   else if (CODE == '!') fprintf (FILE, "%%cc");                                \
+  else if (CODE == '$') { if (TARGET_68040_ONLY) fprintf (FILE, "s"); } \
+  else if (CODE == '&') { if (TARGET_68040_ONLY) fprintf (FILE, "d"); } \
   else if (GET_CODE (X) == REG)                                                \
     fprintf (FILE, "%s", reg_names[REGNO (X)]);                                \
   else if (GET_CODE (X) == MEM)                                                \
index 717185d926f616e39e29f086c3aa6ba411c30e83..e4ca0e7aed7604efd6c780f37e7c71b6af7863bc 100644 (file)
@@ -1204,7 +1204,7 @@ reload (first, global, dumpfile)
                      caller_save_needs[(int) caller_save_spill_class]++;
 
                      while (*p != LIM_REG_CLASSES)
-                       caller_save_needs[*p++] += 1;
+                       caller_save_needs[(int) *p++] += 1;
                    }
 
                  if (caller_save_group_size > 1)