src/share/vm/adlc/archDesc.cpp

changeset 3040
c7b60b601eb4
parent 2314
f95d63e2154a
child 3051
11211f7cb5a0
     1.1 --- a/src/share/vm/adlc/archDesc.cpp	Wed Jul 27 15:06:35 2011 -0700
     1.2 +++ b/src/share/vm/adlc/archDesc.cpp	Wed Jul 27 17:28:36 2011 -0700
     1.3 @@ -335,6 +335,9 @@
     1.4      while (attr != NULL) {
     1.5        if (strcmp(attr->_ident,"ins_short_branch") == 0 &&
     1.6            attr->int_val(*this) != 0) {
     1.7 +        if (!instr->is_ideal_branch() || instr->label_position() == -1) {
     1.8 +          syntax_err(instr->_linenum, "%s: Only short branch to a label is supported\n", rootOp);
     1.9 +        }
    1.10          instr->set_short_branch(true);
    1.11        } else if (strcmp(attr->_ident,"ins_alignment") == 0 &&
    1.12            attr->int_val(*this) != 0) {

mercurial