re PR target/33184 (m32c: ostream.tcc:92: error: unable to find a register to spill in class 'A_REGS')

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
This commit is contained in:
Rask Ingemann Lambertsen 2007-09-25 03:40:30 +02:00 committed by DJ Delorie
parent 18ff3013c2
commit c6004917e9
2 changed files with 10 additions and 1 deletions

View 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

View 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;
}