[backport gcc-4.9/trunk r200041 ] List-Archive: From: Richard Sandiford Subject: [committed] Fix mips/memcpy-1.c after DATA_ALIGNMENT change Date: Wed, 12 Jun 2013 22:31:57 +0100 Make the array non-common so that it is treated as binding to the current TU. Tested on mipsisa32-sde-elf and applied. Richard gcc/testsuite/ 2013-06-12 Richard Sandiford * gcc.target/mips/mips.exp: Handle -f{no-,}common. * gcc.target/mips/memcpy-1.c: Remove redundant dg-do. Run with -fno-common. --- gcc-4.8.1/gcc/testsuite/gcc.target/mips/memcpy-1.c.~1~ 2012-08-27 18:27:50.000000000 +0200 +++ gcc-4.8.1/gcc/testsuite/gcc.target/mips/memcpy-1.c 2013-06-16 12:29:34.960441854 +0200 @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-options "-fno-common" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ /* { dg-final { scan-assembler-not "\tlbu\t" } } */ --- gcc-4.8.1/gcc/testsuite/gcc.target/mips/mips.exp.~1~ 2013-02-25 14:53:16.000000000 +0100 +++ gcc-4.8.1/gcc/testsuite/gcc.target/mips/mips.exp 2013-06-16 12:29:34.960441854 +0200 @@ -285,6 +285,7 @@ foreach option { # Add -ffoo/-fno-foo options to mips_option_groups. foreach option { + common delayed-branch expensive-optimizations fast-math