On Wed, Jan 24, 2007 at 08:39:47PM -0500, DJ Delorie wrote: > > Here's an example of bad assumptions. The current code calculates the > subreg location BEFORE checking to see if such a subreg is legal. > This patch moved the legality check before the location calculations.
See also <URL:http://gcc.gnu.org/ml/gcc-patches/2006-12/msg00241.html>. You probably need to be prepared, whatever that means, for HARD_REGNO_NREGS() to be called with parameters for which HARD_REGNO_MODE_OK() returns 0. As you've found out, subreg_get_info() might do that. -- Rask Ingemann Lambertsen