X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=gmqcc.ini.example;h=0a263df6da6631aeabfb159884ee30c3eb2bd093;hb=dc48af195dfdf3ef36eee04542aede8dc7812ca8;hp=9dbb6fbbc91d2a74ab4edf9c1b484e6646fb2064;hpb=f4f805f4c980f5e509447a965b4ef811c0741581;p=xonotic%2Fgmqcc.git diff --git a/gmqcc.ini.example b/gmqcc.ini.example index 9dbb6fb..0a263df 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -31,7 +31,7 @@ #write a ticket. FTEPP = true - + #Enable some predefined macros. This only works in combination #with '-fftepp' and is currently not included by '-std=fteqcc'. @@ -516,13 +516,36 @@ UNSAFE_TYPES = true - #When compiling original id1 QC, there is a definition for `break` + #When compiling original id1 QC there is a definition for `break` #which conflicts with the 'break' keyword in GMQCC. Enabling this - #warning will print a warning when the definition occurs. The - #definition is ignored for both cases. + #print a warning when the definition occurs. The definition is + #ignored for both cases. BREAKDEF = true + + #When compiling original QuakeWorld QC there are instances where + #code overwrites constants. This is considered an error, however + #for QuakeWorld to compile it needs to be treated as a warning + #instead, as such this warning only works when -std=qcc. + + CONST_OVERWRITE = true + + + #Warn about the use of preprocessor directives inside macros. + + DIRECTIVE_INMACRO = true + + + #When using a function that is not explicitly defined, the compiler + #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. + + BUILTINS = true + + [optimizations] #Some general peephole optimizations. For instance the code `a = b #+ c` typically generates 2 instructions, an ADD and a STORE. This @@ -553,7 +576,6 @@ OVERLAP_LOCALS = true - #This promotes locally declared variables to "temps". Meaning when #a temporary result of an operation has to be stored somewhere, a #local variable which is not 'alive' at that point can be used to @@ -563,7 +585,7 @@ LOCAL_TEMPS = true - + #Causes temporary values which do not need to be backed up on a #CALL to not be stored in the function's locals-area. With this, a #CALL to a function may need to back up fewer values and thus exe‐ @@ -636,6 +658,7 @@ CONST_FOLD_DCE = true + #For constant expressions we can fold them to immediate values. #this option cannot be disabled or enabled, the compiler forces #it to stay enabled by ignoring the value entierly. There are