This is the mail archive of the gcc-bugs@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]

[Bug target/15491] ICE (Internal compiler error) while compiling glibc to vax-linux target


------- 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


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