summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-07-04 13:56:57 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-07-04 13:56:57 +0000
commit8ab6d2ddbc526acc395ddc6725067b8d74af40c0 (patch)
tree5d4dd8c9ff7de71e4d4e2eea7ac78ea6c72bbe1f /packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch
parentd63780b41e9b5241693e6815f5b71333e749f382 (diff)
parent83b4adb291b2b04a927f80036ffee727d23a9cfc (diff)
merge of '1a0381ff4565808f58609382d1280e18d59ded7f'
and '82db3fe8864d686473c6bbf5db186f5fcbc90c5f'
Diffstat (limited to 'packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch')
-rw-r--r--packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch b/packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch
new file mode 100644
index 0000000000..59ecbff4f5
--- /dev/null
+++ b/packages/gcc/gcc-4.2.2/903-avr32-fix-removal-of-redundant-cast-operations.patch
@@ -0,0 +1,16 @@
+Index: trunk/gcc/config/avr32/avr32.c
+===================================================================
+--- trunk/gcc/config/avr32/avr32.c (revision 43495)
++++ trunk/gcc/config/avr32/avr32.c (revision 43496)
+@@ -6499,6 +6499,11 @@
+ break;
+ }
+
++ /* Check if we have a call and the register is used as an argument. */
++ if (CALL_P (scan)
++ && find_reg_fusage (scan, USE, reg) )
++ break;
++
+ if (!reg_mentioned_p (reg, PATTERN (scan)))
+ continue;
+