diff options
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index 699590e..8c45979 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -338,7 +338,9 @@ main (int argc, char **argv) } /* Special-purpose attributes should be tested with if, not #ifdef. */ - const char * const special_attrs[] = { "length", "enabled", 0 }; + const char * const special_attrs[] = { "length", "enabled", + "preferred_for_size", + "preferred_for_speed", 0 }; for (const char * const *p = special_attrs; *p; p++) { printf ("#ifndef HAVE_ATTR_%s\n" @@ -355,9 +357,15 @@ main (int argc, char **argv) "#define insn_current_length hook_int_rtx_insn_unreachable\n" "#include \"insn-addr.h\"\n" "#endif\n" - "#if !HAVE_ATTR_enabled\n" "extern int hook_int_rtx_1 (rtx);\n" + "#if !HAVE_ATTR_enabled\n" "#define get_attr_enabled hook_int_rtx_1\n" + "#endif\n" + "#if !HAVE_ATTR_preferred_for_size\n" + "#define get_attr_preferred_for_size hook_int_rtx_1\n" + "#endif\n" + "#if !HAVE_ATTR_preferred_for_speed\n" + "#define get_attr_preferred_for_speed hook_int_rtx_1\n" "#endif\n"); /* Output flag masks for use by reorg. |