[Bug target/15491] ICE (Internal compiler error) while compiling glibc to vax-linux target
danglin at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 25 03:27:00 GMT 2004
------- Additional Comments From danglin at gcc dot gnu dot org 2004-06-25 03:04 -------
I think the code in rtx_cost should look like this (totally untested):
case PLUS:
case MINUS:
c = (mode == DFmode) ? 13 : 8; /* 6/8 on VAX 9000, 16/15 on VAX 2 */
/* Check for small negative integer operand: subl2 can be used with
a short positive constant instead. */
if (GET_CODE (XEXP (x, 1)) == CONST_INT)
if ((unsigned)(INTVAL (XEXP (x, 1)) + 63) < 127)
fmt = "e";
break;
Adding a break after the code currently in the "PLUS" case is wrong as
c isn't defined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15491
More information about the Gcc-bugs
mailing list