X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=f7f391396c9d61dc96f0f4e86a388a4294db9799;hp=20680d372771cc2d0972e8508fa3632ff2cc5849;hb=68c2baa7c1b9ee1ca7804656d6fb5cf65b435a90;hpb=9cc4fe1ed246e3c37af7cbd7245b0b413372f3b9 diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 20680d3..f7f3913 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -310,6 +310,11 @@ SORT_OPERANDS = 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 +573,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