6 * Permission is hereby granted, free of charge, to any person obtaining a copy of
7 * this software and associated documentation files (the "Software"), to deal in
8 * the Software without restriction, including without limitation the rights to
9 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is furnished to do
11 * so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 #ifndef GMQCC_DEFINE_FLAG
25 # define GMQCC_DEFINE_FLAG(x)
29 #ifdef GMQCC_TYPE_FLAGS
30 GMQCC_DEFINE_FLAG(OVERLAP_LOCALS)
31 GMQCC_DEFINE_FLAG(DARKPLACES_STRING_TABLE_BUG)
32 GMQCC_DEFINE_FLAG(ADJUST_VECTOR_FIELDS)
33 GMQCC_DEFINE_FLAG(FTEPP)
34 GMQCC_DEFINE_FLAG(FTEPP_PREDEFS)
35 GMQCC_DEFINE_FLAG(RELAXED_SWITCH)
36 GMQCC_DEFINE_FLAG(SHORT_LOGIC)
37 GMQCC_DEFINE_FLAG(PERL_LOGIC)
38 GMQCC_DEFINE_FLAG(TRANSLATABLE_STRINGS)
39 GMQCC_DEFINE_FLAG(INITIALIZED_NONCONSTANTS)
40 GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
41 GMQCC_DEFINE_FLAG(LNO)
42 GMQCC_DEFINE_FLAG(CORRECT_TERNARY)
43 GMQCC_DEFINE_FLAG(SINGLE_VECTOR_DEFS)
44 GMQCC_DEFINE_FLAG(CORRECT_LOGIC)
45 GMQCC_DEFINE_FLAG(TRUE_EMPTY_STRINGS)
46 GMQCC_DEFINE_FLAG(FALSE_EMPTY_STRINGS)
47 GMQCC_DEFINE_FLAG(UTF8)
51 #ifdef GMQCC_TYPE_WARNS
52 GMQCC_DEFINE_FLAG(DEBUG)
53 GMQCC_DEFINE_FLAG(UNUSED_VARIABLE)
54 GMQCC_DEFINE_FLAG(USED_UNINITIALIZED)
55 GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
56 GMQCC_DEFINE_FLAG(EXTENSIONS)
57 GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
58 GMQCC_DEFINE_FLAG(MISSING_RETURN_VALUES)
59 GMQCC_DEFINE_FLAG(TOO_FEW_PARAMETERS)
60 GMQCC_DEFINE_FLAG(LOCAL_SHADOWS)
61 GMQCC_DEFINE_FLAG(LOCAL_CONSTANTS)
62 GMQCC_DEFINE_FLAG(VOID_VARIABLES)
63 GMQCC_DEFINE_FLAG(IMPLICIT_FUNCTION_POINTER)
64 GMQCC_DEFINE_FLAG(VARIADIC_FUNCTION)
65 GMQCC_DEFINE_FLAG(FRAME_MACROS)
66 GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
67 GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
68 GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
69 GMQCC_DEFINE_FLAG(PREPROCESSOR)
70 GMQCC_DEFINE_FLAG(MULTIFILE_IF)
71 GMQCC_DEFINE_FLAG(DOUBLE_DECLARATION)
72 GMQCC_DEFINE_FLAG(CONST_VAR)
73 GMQCC_DEFINE_FLAG(MULTIBYTE_CHARACTER)
74 GMQCC_DEFINE_FLAG(TERNARY_PRECEDENCE)
75 GMQCC_DEFINE_FLAG(UNKNOWN_PRAGMAS)
76 GMQCC_DEFINE_FLAG(UNREACHABLE_CODE)
77 GMQCC_DEFINE_FLAG(CPP)
78 GMQCC_DEFINE_FLAG(UNKNOWN_ATTRIBUTE)
81 #ifdef GMQCC_TYPE_OPTIMIZATIONS
82 GMQCC_DEFINE_FLAG(PEEPHOLE, 1)
83 GMQCC_DEFINE_FLAG(LOCAL_TEMPS, 3)
84 GMQCC_DEFINE_FLAG(TAIL_RECURSION, 1)
85 GMQCC_DEFINE_FLAG(TAIL_CALLS, 2)
86 GMQCC_DEFINE_FLAG(OVERLAP_LOCALS, 3)
87 GMQCC_DEFINE_FLAG(STRIP_CONSTANT_NAMES, 1)
88 GMQCC_DEFINE_FLAG(OVERLAP_STRINGS, 2)
89 GMQCC_DEFINE_FLAG(CALL_STORES, 1)
92 /* some cleanup so we don't have to */
93 #undef GMQCC_TYPE_FLAGS
94 #undef GMQCC_TYPE_WARNS
95 #undef GMQCC_DEFINE_FLAG