Mercurial > octave-nkf
comparison libinterp/corefcn/pt-jit.cc @ 18601:fa53284d4511 draft lyh
Fix warnings
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 21 Mar 2014 14:59:39 -0400 |
parents | 67445219aee2 |
children |
comparison
equal
deleted
inserted
replaced
18600:67445219aee2 | 18601:fa53284d4511 |
---|---|
877 block->append (factory.create<jit_branch> (if_blocks[i])); | 877 block->append (factory.create<jit_branch> (if_blocks[i])); |
878 | 878 |
879 blocks.push_back (if_blocks[i]); | 879 blocks.push_back (if_blocks[i]); |
880 block = if_blocks[i]; // if_cond | 880 block = if_blocks[i]; // if_cond |
881 tree_switch_case *twc = *iter; | 881 tree_switch_case *twc = *iter; |
882 tree_expression *expr = twc->case_label (); | 882 tree_expression *te = twc->case_label (); |
883 jit_value *label = visit (expr); | 883 jit_value *label = visit (te); |
884 assert(label); | 884 assert(label); |
885 | 885 |
886 const jit_operation& fn = jit_typeinfo::binary_op (octave_value::op_eq); | 886 const jit_operation& fn = jit_typeinfo::binary_op (octave_value::op_eq); |
887 jit_value *cond = create_checked (fn, value, label); | 887 jit_value *cond = create_checked (fn, value, label); |
888 assert(cond); | 888 assert(cond); |
1059 jit_block *tail = factory.create<jit_block> ("do_until_tail"); | 1059 jit_block *tail = factory.create<jit_block> ("do_until_tail"); |
1060 block->append (factory.create<jit_cond_branch> (check, tail, body)); | 1060 block->append (factory.create<jit_cond_branch> (check, tail, body)); |
1061 | 1061 |
1062 finish_breaks (tail, breaks); | 1062 finish_breaks (tail, breaks); |
1063 | 1063 |
1064 // FIXME: break should be handled | |
1064 #if 0 | 1065 #if 0 |
1065 if (! all_breaking || continues.size ()) | 1066 if (! all_breaking || continues.size ()) |
1066 { | 1067 { |
1067 jit_block *interrupt_check | 1068 jit_block *interrupt_check |
1068 = factory.create<jit_block> ("interrupt_check"); | 1069 = factory.create<jit_block> ("interrupt_check"); |
1079 } | 1080 } |
1080 #endif | 1081 #endif |
1081 | 1082 |
1082 blocks.push_back (tail); | 1083 blocks.push_back (tail); |
1083 block = tail; | 1084 block = tail; |
1085 | |
1086 // FIXME: Make compiler happy | |
1087 (void)all_breaking; | |
1084 } | 1088 } |
1085 | 1089 |
1086 void | 1090 void |
1087 jit_convert::initialize (symbol_table::scope_id s) | 1091 jit_convert::initialize (symbol_table::scope_id s) |
1088 { | 1092 { |