From patchwork Tue Jul 13 09:48:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Move MAX_BITS_PER_WORD into expmed.h From: Ramana Radhakrishnan X-Patchwork-Id: 58728 Message-Id: <1279014514.32159.54.camel@e102325-lin.cambridge.arm.com> To: gcc-patches@gcc.gnu.org Cc: rsandifo@gcc.gnu.org Date: Tue, 13 Jul 2010 10:48:34 +0100 Hi, This patch http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00601.html broke bootstrap on arm-linux-gnueabi because while it moved references to MAX_BITS_PER_WORD into expmed.h , it didn't move it's definition up there. Verified that bootstrap proceeds beyond building expmed.o and complete bootstrap and test on arm-linux-gnueabi in progress. Committed. Cheers Ramana 2010-07-13 Ramana Radhakrishnan * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h. * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c. Index: gcc/expmed.c =================================================================== --- gcc/expmed.c (revision 162131) +++ gcc/expmed.c (working copy) @@ -69,13 +69,6 @@ static rtx expand_sdiv_pow2 (enum machin #define SLOW_UNALIGNED_ACCESS(MODE, ALIGN) STRICT_ALIGNMENT #endif -/* For compilers that support multiple targets with different word sizes, - MAX_BITS_PER_WORD contains the biggest value of BITS_PER_WORD. An example - is the H8/300(H) compiler. */ - -#ifndef MAX_BITS_PER_WORD -#define MAX_BITS_PER_WORD BITS_PER_WORD -#endif /* Reduce conditional compilation elsewhere. */ #ifndef HAVE_insv Index: gcc/expmed.h =================================================================== --- gcc/expmed.h (revision 162131) +++ gcc/expmed.h (working copy) @@ -65,6 +65,14 @@ struct mult_cost { || ((X)->cost == (Y)->cost \ && (X)->latency < (Y)->latency)) +/* For compilers that support multiple targets with different word sizes, + MAX_BITS_PER_WORD contains the biggest value of BITS_PER_WORD. An example + is the H8/300(H) compiler. */ + +#ifndef MAX_BITS_PER_WORD +#define MAX_BITS_PER_WORD BITS_PER_WORD +#endif + /* This structure records a sequence of operations. `ops' is the number of operations recorded. `cost' is their total cost.