Skip to content

Commit 20aa98f

Browse files
committed
fbc: allow -fpmode and -fpu options on #cmdline
Allow fpmode fast|precise to be specified independently of other options. Default is -fpmode precise. Remove a check where 'fast' was only allowed with '-fpu sse'. - default is -fpu x87 for x86 and x86_64 Note: 'fpmode fast|precise' chooses the kind of floating point code generated directly by fbc. gcc has its own options. When using '-gen gcc' pass '-Wc -ffast-math' to tell gcc to optimize with fast floating point.
1 parent aaaa080 commit 20aa98f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/fbc.bas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,8 +2979,7 @@ private sub hCheckArgs()
29792979
''
29802980
select case( fbGetOption( FB_COMPOPT_FPUTYPE ) )
29812981
case FB_FPUTYPE_FPU
2982-
if( fbGetOption( FB_COMPOPT_VECTORIZE ) >= FB_VECTORIZE_NORMAL ) or _
2983-
( fbGetOption( FB_COMPOPT_FPMODE ) = FB_FPMODE_FAST ) then
2982+
if( fbGetOption( FB_COMPOPT_VECTORIZE ) >= FB_VECTORIZE_NORMAL ) then
29842983
errReportEx( FB_ERRMSG_OPTIONREQUIRESSSE, "", -1 )
29852984
fbcEnd( 1 )
29862985
end if

0 commit comments

Comments
 (0)