expr.c (cmpstr_optab, [...]): New.
authorZack Weinberg <zack@codesourcery.com>
Tue, 7 Oct 2003 07:25:32 +0000 (07:25 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 7 Oct 2003 07:25:32 +0000 (07:25 +0000)
commit118355a03a02364b065d54f0d2fcfba4280b1226
treed4a8b3ee4b8b88dd468603c0b19601f19c2ce133
parentd04a575f62b621e3df75c2cd7823a6613a2f1dc8
expr.c (cmpstr_optab, [...]): New.

* expr.c (cmpstr_optab, cmpmem_optab): New.
* genopinit.c: Initialize them.
* optabs.h: Declare them.
* optabs.c (init_optabs): Clear them.
(prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
block memory compare insns, not conditional chains.  Restructure
the fallback generation of a call to memcmp/bcmp for better
readability.

From-SVN: r72185
gcc/ChangeLog
gcc/expr.c
gcc/genopinit.c
gcc/optabs.c
gcc/optabs.h