diff options
author | Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> | 2010-07-13 09:48:58 +0000 |
---|---|---|
committer | Ramana Radhakrishnan <ramana@gcc.gnu.org> | 2010-07-13 09:48:58 +0000 |
commit | 6d06590db7d87474cc9ff2b685743af067e72628 (patch) | |
tree | 8a0b68433a0b70a92e0878e435e94b02454b7d1c | |
parent | ea2d8f125470dabe1f33a4865ce7a81e27de4408 (diff) | |
download | gcc-6d06590db7d87474cc9ff2b685743af067e72628.zip gcc-6d06590db7d87474cc9ff2b685743af067e72628.tar.gz gcc-6d06590db7d87474cc9ff2b685743af067e72628.tar.bz2 |
expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
* expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c
From-SVN: r162133
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expmed.c | 7 | ||||
-rw-r--r-- | gcc/expmed.h | 8 |
3 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6499187..9e7db93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> + + * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h. + * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c. + 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct diff --git a/gcc/expmed.c b/gcc/expmed.c index 186cf01..e6b30e4 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -69,13 +69,6 @@ static rtx expand_sdiv_pow2 (enum machine_mode, rtx, HOST_WIDE_INT); #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 diff --git a/gcc/expmed.h b/gcc/expmed.h index 37f5755..bd12cd2 100644 --- a/gcc/expmed.h +++ b/gcc/expmed.h @@ -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. |