diff options
| author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-12 22:04:19 +0000 |
|---|---|---|
| committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-12 22:04:19 +0000 |
| commit | e077db18b795c752c02ab65ef06a9419a50da469 (patch) | |
| tree | 8f755944e33072f0092458c5439e1ba58925cc4c | |
| parent | 96b3977546f5e0786f909f0d12b74ca60a3d84a7 (diff) | |
| download | ppe42-gcc-e077db18b795c752c02ab65ef06a9419a50da469.tar.gz ppe42-gcc-e077db18b795c752c02ab65ef06a9419a50da469.zip | |
2008-03-12 Paul Brook <paul@codesourcery.com>
gcc/
* config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133151 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/arm/arm.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 618cb8ed3bc..514d86c0c16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-03-12 Paul Brook <paul@codesourcery.com> + + gcc/ + * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2. + 2008-03-12 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.md (int_cond): New code iterator. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 304b4302cc6..5f92e4649f4 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -5070,13 +5070,14 @@ arm_size_rtx_costs (rtx x, int code, int outer_code, int *total) { enum machine_mode mode = GET_MODE (x); - if (TARGET_THUMB) + if (TARGET_THUMB1) { /* XXX TBD. For now, use the standard costs. */ *total = thumb1_rtx_costs (x, code, outer_code); return true; } + /* FIXME: This makes no attempt to prefer narrow Thumb-2 instructions. */ switch (code) { case MEM: |

