diff mbox

[committed] Fix mips/memcpy-1.c after DATA_ALIGNMENT change

Message ID 874nd35836.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford June 12, 2013, 9:31 p.m. UTC
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/
	* gcc.target/mips/mips.exp: Handle -f{no-,}common.
	* gcc.target/mips/memcpy-1.c: Remove redundant dg-do.
	Run with -fno-common.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/mips/mips.exp
===================================================================
--- gcc/testsuite/gcc.target/mips/mips.exp	2013-03-20 21:01:23.362615041 +0000
+++ gcc/testsuite/gcc.target/mips/mips.exp	2013-06-12 22:26:44.728021026 +0100
@@ -286,6 +286,7 @@  foreach option {
 
 # Add -ffoo/-fno-foo options to mips_option_groups.
 foreach option {
+    common
     delayed-branch
     expensive-optimizations
     fast-math
Index: gcc/testsuite/gcc.target/mips/memcpy-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/memcpy-1.c	2012-08-27 17:27:13.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/memcpy-1.c	2013-06-12 22:26:09.612659202 +0100
@@ -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" } } */