aboutsummaryrefslogtreecommitdiff
path: root/gcc/gensupport.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-06-26 10:06:56 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-06-26 10:06:56 +0000
commit9d8895c9342d2c46d7d7e9b0437879db9d60cf7c (patch)
tree8a2e3d3e02ca429c89dc152311efede46fcf29ac /gcc/gensupport.c
parent311bd4d8973d4ad8727e3dcf842fbc4bcfd12d7b (diff)
downloadgcc-9d8895c9342d2c46d7d7e9b0437879db9d60cf7c.zip
gcc-9d8895c9342d2c46d7d7e9b0437879db9d60cf7c.tar.gz
gcc-9d8895c9342d2c46d7d7e9b0437879db9d60cf7c.tar.bz2
rtl.h (emit): Add an optional boolean parameter to control whether barriers are emitted.
gcc/ * rtl.h (emit): Add an optional boolean parameter to control whether barriers are emitted. * emit-rtl.c (emit): Likewise. * gensupport.c (get_emit_function): Return null rather than "emit". * genemit.c (gen_emit_seq): Handle the null return value. Don't emit barriers after the final instruction in the sequence. * gentarget-def.c (main): Don't emit barriers after the instruction. From-SVN: r225000
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r--gcc/gensupport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c
index 916fbc1..729366c 100644
--- a/gcc/gensupport.c
+++ b/gcc/gensupport.c
@@ -2983,7 +2983,9 @@ get_pattern_stats (struct pattern_stats *stats, rtvec pattern)
stats->max_scratch_opno)) + 1;
}
-/* Return the emit_* function that should be used for pattern X. */
+/* Return the emit_* function that should be used for pattern X, or NULL
+ if we can't pick a particular type at compile time and should instead
+ fall back to "emit". */
const char *
get_emit_function (rtx x)
@@ -3000,7 +3002,7 @@ get_emit_function (rtx x)
return "emit_jump_insn";
case UNKNOWN:
- return "emit";
+ return NULL;
default:
gcc_unreachable ();