Skip to content

Commit 4b3cf09

Browse files
committed
fbc: update fbc.1 docs for debug options
- '-earray': Enable array bounds checking - '-eassert': Enable assert() and assertwarn() checking - '-edebug': Enable __FB_DEBUG__ - '-debuginfo': Add debug information - '-elocation': Enable full error location reporting - '-enullptr': Enable null-pointer checking
1 parent f8f68c3 commit 4b3cf09

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

doc/fbc.1

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH FBC 1 "2019-05-20" "FreeBASIC Compiler 1.07.0" "FreeBASIC Compiler"
1+
.TH FBC 1 "2019-07-23" "FreeBASIC Compiler 1.07.0" "FreeBASIC Compiler"
22
.SH NAME
33
fbc \- The FreeBASIC compiler
44
.SH DESCRIPTION
@@ -45,6 +45,24 @@ Create a Win32 DLL or Linux/*BSD shared library
4545
\fB\-e\fR
4646
Enable runtime error checking
4747
.TP
48+
\fB\-earray\fR
49+
Enable array bounds checking
50+
.TP
51+
\fB\-eassert\fR
52+
Enable assert() and assertwarn() checking
53+
.TP
54+
\fB\-edebug\fR
55+
Enable __FB_DEBUG__
56+
.TP
57+
\fB\-edebuginfo\fR
58+
Add debug information
59+
.TP
60+
\fB\-elocation\fR
61+
Enable full error location reporting
62+
.TP
63+
\fB\-enullptr\fR
64+
Enable null-pointer checking
65+
.TP
4866
\fB\-ex\fR
4967
\fB-e\fR plus RESUME support
5068
.TP
@@ -64,7 +82,7 @@ Select floating-point math accuracy/speed
6482
Set target FPU
6583
.TP
6684
\fB\-g\fR
67-
Add debug info
85+
Add debug info, enable __FB_DEBUG__, and enable asserts
6886
.TP
6987
\fB\-gen\fR \fBgas\fR|\fBgcc\fR|\fBllvm\fR
7088
Select code generation backend

src/compiler/fbc.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3426,7 +3426,7 @@ private sub hPrintOptions( byval verbose as integer )
34263426
print " -eassert Enable assert() and assertwarn() checking"
34273427
print " -edebug Enable __FB_DEBUG__"
34283428
print " -edebuginfo Add debug info"
3429-
print " -elocation Enable reporting error location"
3429+
print " -elocation Enable error location reporting"
34303430
print " -enullptr Enable null-pointer checking"
34313431
end if
34323432

@@ -3436,7 +3436,7 @@ private sub hPrintOptions( byval verbose as integer )
34363436
print " -forcelang <name> Override #lang statements in source code"
34373437
print " -fpmode fast|precise Select floating-point math accuracy/speed"
34383438
print " -fpu x87|sse Set target FPU"
3439-
print " -g Add debug info, define __FB_DEBUG__, and enable assert()"
3439+
print " -g Add debug info, enable __FB_DEBUG__, and enable assert()"
34403440

34413441
if( verbose ) then
34423442
print " -gen gas Select GNU gas assembler backend"

0 commit comments

Comments
 (0)