This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: subreg_get_info vs mode restrictions in registers?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]