re PR target/33184 (m32c: ostream.tcc:92: error: unable to find a register to spill...
authorRask Ingemann Lambertsen <rask@sygehus.dk>
Tue, 25 Sep 2007 01:40:30 +0000 (03:40 +0200)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 25 Sep 2007 01:40:30 +0000 (21:40 -0400)
2007-08-26  Rask Ingemann Lambertsen  <rask@sygehus.dk>
PR target/33184
* config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
register for reload.

From-SVN: r128741

gcc/ChangeLog
gcc/config/m32c/m32c.c

index 07b24d72baa8946ab55f2fdbd97b91819e979cc1..ec21e93e9ec379347580b959c5f7271104464e14 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-24  Rask Ingemann Lambertsen  <rask@sygehus.dk>
+
+       PR target/33184
+       * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
+       register for reload.
+
 2007-09-24  Danny Smith  <dannysmith@user.sourceforge.net>
 
        PR c++/14688
index de9831102720119daaf9c9037063b3326de9fcae..74de4166149f5cbce82cb9f4bdb47f9ef31a3c69 100644 (file)
@@ -1127,7 +1127,10 @@ m32c_eh_return_data_regno (int n)
     case 0:
       return A0_REGNO;
     case 1:
-      return A1_REGNO;
+      if (TARGET_A16)
+       return R3_REGNO;
+      else
+       return R1_REGNO;
     default:
       return INVALID_REGNUM;
     }