]> granicus.if.org Git - yasm/commitdiff
Don't allow floats to be used as targets of jumps.
authorPeter Johnson <peter@tortall.net>
Thu, 11 Oct 2001 23:09:34 +0000 (23:09 -0000)
committerPeter Johnson <peter@tortall.net>
Thu, 11 Oct 2001 23:09:34 +0000 (23:09 -0000)
svn path=/trunk/yasm/; revision=276

modules/parsers/nasm/bison.y.in
modules/parsers/nasm/nasm-bison.y
src/parsers/nasm/bison.y.in
src/parsers/nasm/nasm-bison.y

index 6d495b7ff5db98a5a2200f9807e04dc48755415d..d246fe04854b30862718ec7af3afc52e9ac739a2 100644 (file)
@@ -387,7 +387,7 @@ imm32: imm
 ;
 
 /* jump targets */
-target: expr_no_string { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
+target: expr_no_fltstr { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
     | SHORT target     { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_SHORT_FORCED); }
     | NEAR target      { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_NEAR_FORCED); }
 ;
index 6d495b7ff5db98a5a2200f9807e04dc48755415d..d246fe04854b30862718ec7af3afc52e9ac739a2 100644 (file)
@@ -387,7 +387,7 @@ imm32: imm
 ;
 
 /* jump targets */
-target: expr_no_string { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
+target: expr_no_fltstr { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
     | SHORT target     { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_SHORT_FORCED); }
     | NEAR target      { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_NEAR_FORCED); }
 ;
index 6d495b7ff5db98a5a2200f9807e04dc48755415d..d246fe04854b30862718ec7af3afc52e9ac739a2 100644 (file)
@@ -387,7 +387,7 @@ imm32: imm
 ;
 
 /* jump targets */
-target: expr_no_string { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
+target: expr_no_fltstr { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
     | SHORT target     { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_SHORT_FORCED); }
     | NEAR target      { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_NEAR_FORCED); }
 ;
index 6d495b7ff5db98a5a2200f9807e04dc48755415d..d246fe04854b30862718ec7af3afc52e9ac739a2 100644 (file)
@@ -387,7 +387,7 @@ imm32: imm
 ;
 
 /* jump targets */
-target: expr_no_string { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
+target: expr_no_fltstr { $$.val = $1; SetOpcodeSel(&$$.op_sel, JR_NONE); }
     | SHORT target     { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_SHORT_FORCED); }
     | NEAR target      { $$ = $2; SetOpcodeSel(&$$.op_sel, JR_NEAR_FORCED); }
 ;