From: Peter Johnson Date: Thu, 11 Oct 2001 23:09:34 +0000 (-0000) Subject: Don't allow floats to be used as targets of jumps. X-Git-Tag: v0.1.0~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1708da018aecf54acf7e3ce3b0dedb8eb8d5854d;p=yasm Don't allow floats to be used as targets of jumps. svn path=/trunk/yasm/; revision=276 --- diff --git a/modules/parsers/nasm/bison.y.in b/modules/parsers/nasm/bison.y.in index 6d495b7f..d246fe04 100644 --- a/modules/parsers/nasm/bison.y.in +++ b/modules/parsers/nasm/bison.y.in @@ -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); } ; diff --git a/modules/parsers/nasm/nasm-bison.y b/modules/parsers/nasm/nasm-bison.y index 6d495b7f..d246fe04 100644 --- a/modules/parsers/nasm/nasm-bison.y +++ b/modules/parsers/nasm/nasm-bison.y @@ -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); } ; diff --git a/src/parsers/nasm/bison.y.in b/src/parsers/nasm/bison.y.in index 6d495b7f..d246fe04 100644 --- a/src/parsers/nasm/bison.y.in +++ b/src/parsers/nasm/bison.y.in @@ -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); } ; diff --git a/src/parsers/nasm/nasm-bison.y b/src/parsers/nasm/nasm-bison.y index 6d495b7f..d246fe04 100644 --- a/src/parsers/nasm/nasm-bison.y +++ b/src/parsers/nasm/nasm-bison.y @@ -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); } ;