Hi Christian,
On 01/12/15 09:18, Christian Bruel wrote:
Hi,
This patches fixes the PR my making the unaligned_access flag sensitive to the
attribute target, since some armv6 might use unaligned loads depending on the
TARGET_32BIT flag.
OK for stage3 ?
Index: gcc/testsuite/gcc.target/arm/attr-unaligned-load-ice.c
===================================================================
--- gcc/testsuite/gcc.target/arm/attr-unaligned-load-ice.c (revision 0)
+++ gcc/testsuite/gcc.target/arm/attr-unaligned-load-ice.c (working copy)
@@ -0,0 +1,19 @@
+/* PR target/68617
+ Verify that unaligned_access is correctly with attribute target. */
+/* { dg-do compile } */
+/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } {
"-march=armv6" } } */
+/* { dg-options "-Os -mfloat-abi=softfp -mtp=soft" } */
+/* { dg-add-options arm_arch_v6 } */
Do you need the -mtp=soft ?
This is ok for trunk.
Thanks for picking this up.
Kyrill