aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <gjl@gcc.gnu.org>2011-07-20 15:10:13 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2011-07-20 15:10:13 +0000
commit73451ae7855681759cde520c001171d9d1bede96 (patch)
tree868a30836263f8a34fd90f2c2526f8f52afffffd
parentc2919dc87c05125ed6399982d302fbe65d815c89 (diff)
downloadgcc-73451ae7855681759cde520c001171d9d1bede96.zip
gcc-73451ae7855681759cde520c001171d9d1bede96.tar.gz
gcc-73451ae7855681759cde520c001171d9d1bede96.tar.bz2
* config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
From-SVN: r176516
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/avr/avr.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ca0dfa0..6f09fc5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-20 Georg-Johann Lay <avr@gjlay.de>
+
+ * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
+
2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_class_max_nregs): Fix return type.
@@ -907,7 +911,7 @@
* doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
* doc/tm.texi: Regenerate.
- * target.def (mergeable_rodata_prefix: New defhookpod.
+ * target.def (mergeable_rodata_prefix): New defhookpod.
* varasm.c (mergeable_string_section, mergeable_constant_section):
Use it. Allocate name with alloca.
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index ebfec0d..7364f1b 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -5332,6 +5332,7 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total,
{
case CONST_INT:
case CONST_DOUBLE:
+ case SYMBOL_REF:
/* Immediate constants are as cheap as registers. */
*total = 0;
return true;
@@ -5339,7 +5340,6 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total,
case MEM:
case CONST:
case LABEL_REF:
- case SYMBOL_REF:
*total = COSTS_N_INSNS (GET_MODE_SIZE (mode));
return true;