comparison libinterp/corefcn/pt-jit.cc @ 17535:c12c688a35ed default tip lyh

Fix warnings
author LYH <lyh.kernel@gmail.com>
date Fri, 27 Sep 2013 17:43:27 +0800
parents f9abc8e5fc2e
children
comparison
equal deleted inserted replaced
17534:721d6c3cd2e0 17535:c12c688a35ed
868 block->append (factory.create<jit_branch> (if_blocks[i])); 868 block->append (factory.create<jit_branch> (if_blocks[i]));
869 869
870 blocks.push_back (if_blocks[i]); 870 blocks.push_back (if_blocks[i]);
871 block = if_blocks[i]; // if_cond 871 block = if_blocks[i]; // if_cond
872 tree_switch_case *twc = *iter; 872 tree_switch_case *twc = *iter;
873 tree_expression *expr = twc->case_label (); 873 tree_expression *te = twc->case_label ();
874 jit_value *label = visit (expr); 874 jit_value *label = visit (te);
875 assert(label); 875 assert(label);
876 876
877 const jit_operation& fn = jit_typeinfo::binary_op (octave_value::op_eq); 877 const jit_operation& fn = jit_typeinfo::binary_op (octave_value::op_eq);
878 jit_value *cond = create_checked (fn, value, label); 878 jit_value *cond = create_checked (fn, value, label);
879 assert(cond); 879 assert(cond);
1050 jit_block *tail = factory.create<jit_block> ("do_until_tail"); 1050 jit_block *tail = factory.create<jit_block> ("do_until_tail");
1051 block->append (factory.create<jit_cond_branch> (check, tail, body)); 1051 block->append (factory.create<jit_cond_branch> (check, tail, body));
1052 1052
1053 finish_breaks (tail, breaks); 1053 finish_breaks (tail, breaks);
1054 1054
1055 // FIXME: break should be handled
1055 #if 0 1056 #if 0
1056 if (! all_breaking || continues.size ()) 1057 if (! all_breaking || continues.size ())
1057 { 1058 {
1058 jit_block *interrupt_check 1059 jit_block *interrupt_check
1059 = factory.create<jit_block> ("interrupt_check"); 1060 = factory.create<jit_block> ("interrupt_check");
1070 } 1071 }
1071 #endif 1072 #endif
1072 1073
1073 blocks.push_back (tail); 1074 blocks.push_back (tail);
1074 block = tail; 1075 block = tail;
1076
1077 // FIXME: Make compiler happy
1078 (void)all_breaking;
1075 } 1079 }
1076 1080
1077 void 1081 void
1078 jit_convert::initialize (symbol_table::scope_id s) 1082 jit_convert::initialize (symbol_table::scope_id s)
1079 { 1083 {