From: Trevor Saunders Date: Sun, 24 May 2015 00:33:00 +0000 (+0000) Subject: add default for HAVE_store_multiple X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b77eb5eb02f6bed57185940a4642fb79698e1bbc;p=gcc.git add default for HAVE_store_multiple gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_store_multiple): New function. (HAVE_store_multiple): Add default value. * expr.c (move_block_from_reg): Adjust. From-SVN: r223624 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d609d456c3..99ee6ddda40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-23 Trevor Saunders + + * defaults.h (gen_store_multiple): New function. + (HAVE_store_multiple): Add default value. + * expr.c (move_block_from_reg): Adjust. + 2015-05-23 Trevor Saunders * defaults.h (gen_load_multiple): New function. diff --git a/gcc/defaults.h b/gcc/defaults.h index ea5ff804897..566841b532b 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -1484,6 +1484,16 @@ gen_load_multiple (rtx, rtx, rtx) } #endif +#ifndef HAVE_store_multiple +#define HAVE_store_multiple 0 +static inline rtx +gen_store_multiple (rtx, rtx, rtx) +{ + gcc_unreachable (); + return NULL; +} +#endif + #endif /* GCC_INSN_FLAGS_H */ #endif /* ! GCC_DEFAULTS_H */ diff --git a/gcc/expr.c b/gcc/expr.c index c4b39f4be90..0dad73729d4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -1548,7 +1548,6 @@ move_block_from_reg (int regno, rtx x, int nregs) return; /* See if the machine can do this with a store multiple insn. */ -#ifdef HAVE_store_multiple if (HAVE_store_multiple) { rtx_insn *last = get_last_insn (); @@ -1562,7 +1561,6 @@ move_block_from_reg (int regno, rtx x, int nregs) else delete_insns_since (last); } -#endif for (i = 0; i < nregs; i++) {