src/share/vm/adlc/archDesc.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/adlc/archDesc.cpp	Mon Aug 15 17:13:55 2011
--- new/src/share/vm/adlc/archDesc.cpp	Mon Aug 15 17:13:55 2011

*** 329,338 **** --- 329,343 ---- const char *cost = costStr? costStr : defaultCost; // Find result type for match const char *result = instr->reduce_result(); + if ( instr->is_ideal_branch() && instr->label_position() == -1 || + !instr->is_ideal_branch() && instr->label_position() != -1) { + syntax_err(instr->_linenum, "%s: Only branches to a label are supported\n", rootOp); + } + Attribute *attr = instr->_attribs; while (attr != NULL) { if (strcmp(attr->_ident,"ins_short_branch") == 0 && attr->int_val(*this) != 0) { if (!instr->is_ideal_branch() || instr->label_position() == -1) {

src/share/vm/adlc/archDesc.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File