Ticket #64316: patch-genconditions.diff
File patch-genconditions.diff, 1.3 KB (added by i0ntempest, 3 years ago) |
---|
-
gcc/genconditions.c
write_header (void) 57 57 \n\ 58 58 /* It is necessary, but not entirely safe, to include the headers below\n\ 59 59 in a generator program. As a defensive measure, don't do so when the\n\ 60 table isn't going to have anything in it. */\n\ 61 #if GCC_VERSION >= 3001\n\ 60 table isn't going to have anything in it.\n\ 61 Clang 9 is buggy and doesn't handle __builtin_constant_p correctly. */\n\ 62 #if GCC_VERSION >= 3001 && __clang_major__ < 9\n\ 62 63 \n\ 63 64 /* Do not allow checking to confuse the issue. */\n\ 64 65 #undef CHECKING_P\n\ … … struct c_test\n\ 170 171 vary at run time. It works in 3.0.1 and later; 3.0 only when not\n\ 171 172 optimizing. */\n\ 172 173 \n\ 173 #if GCC_VERSION >= 3001 \n\174 #if GCC_VERSION >= 3001 && __clang_major__ < 9\n\ 174 175 static const struct c_test insn_conditions[] = {\n"); 175 176 176 177 traverse_c_tests (write_one_condition, 0); … … write_writer (void) 191 192 " unsigned int i;\n" 192 193 " const char *p;\n" 193 194 " puts (\"(define_conditions [\");\n" 194 "#if GCC_VERSION >= 3001 \n"195 "#if GCC_VERSION >= 3001 && __clang_major__ < 9\n" 195 196 " for (i = 0; i < ARRAY_SIZE (insn_conditions); i++)\n" 196 197 " {\n" 197 198 " printf (\" (%d \\\"\", insn_conditions[i].value);\n"