Bug in gcc/config/arm/arm.c

meissner@cygnus.com meissner@cygnus.com
Mon Nov 3 10:28:00 GMT 1997


|   In message < 345CEEDA.45F8@rcp.co.uk >you write:
|   > There is a bug in output_move_double() in the file gcc/config/arm/arm.c 
|   > which sometimes causes the stack to be corrupted.
|   >
|   > 
|   > The declaration of otherops should be
|   > 'rtx otherops[3]' and not 'rtx otherops[2]' 
| Thanks.   I've fixed this.

Just as a style issue, I tend to do:

	rtx otheropts[10];

myself to avoid problems like this, and to work with patterns that do things
like:

	{
	  operands[3] = ...
	  return \"...\";
	}

(ie, there exist machine descriptions out there where people 'know' that the
operands array is 10 elements long, and they can create new insns that weren't
mentioned in the pattern).



More information about the Gcc-bugs mailing list