X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=doc%2Fgmqcc.1;h=50bce0ecf7cd8adae09f787055a909bf71c8137d;hp=66d2e4e4e14e3b50779e9f7f6bdb641c74ca1281;hb=53e9ed0d9638b911d377df28505f09c0bee62a35;hpb=05b349c72f622292703f301c410704c2320382f4 diff --git a/doc/gmqcc.1 b/doc/gmqcc.1 index 66d2e4e..50bce0e 100644 --- a/doc/gmqcc.1 +++ b/doc/gmqcc.1 @@ -349,6 +349,10 @@ will search its intrinsics table for something that matches that function name by appending "__builtin_" to it. This behaviour may be unexpected, so enabling this will produce a diagnostic when such a function is resolved to a builtin. +.It Fl W Ns Cm inexact-compares +When comparing an inexact value such as `1.0/3.0' the result is +pathologically wrong. Enabling this will trigger a compiler warning +on such expressions. .El .Sh COMPILE FLAGS .Bl -tag -width Ds @@ -587,6 +591,11 @@ Emulate OP_STATE operations in code rather than using the instruction. The desired fps can be set via -state-fps=NUM, defaults to 10. Specifying \-state-fps implicitly sets this flag. Defaults to off in all standards. +.It Fl f Ns Cm arithmetic-exceptions +Turn on arithmetic exception tests in the compiler. In constant expressions +which trigger exceptions like division by zero, overflow, underflow, etc, +the following flag will produce diagnostics for what triggered that +exception. .El .Sh OPTIMIZATIONS .Bl -tag -width Ds