X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=ceacf289c3fd606f43c9532171c9161fa8d464b4;hp=20680d372771cc2d0972e8508fa3632ff2cc5849;hb=3e576bd1f3336fb2ece646d0a60da1a8eaa67ecc;hpb=6a44b72db35be162e247e1ec234d90f8914eb014 diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 20680d3..ceacf28 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -310,6 +310,17 @@ SORT_OPERANDS = false + #Emulate OP_STATE operations in code rather than using the instruction. + #The desired fps can be set via -state-fps=NUM, defaults to 10. + + EMULATE_STATE = false + + + #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. + ARITHMETIC_EXCEPTIONS = false [warnings] #Generate a warning about variables which are declared but never @@ -568,6 +579,12 @@ BUILTINS = true + #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. + INEXACT_COMPARES = true + + [optimizations] #Some general peephole optimizations. For instance the code `a = b #+ c` typically generates 2 instructions, an ADD and a STORE. This