This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch RFC] Tweak gcc.dg/pr39323-2.c for some targets


Hi,

On sh4-unknown-linux-gnu, I see a new failure

FAIL: gcc.dg/pr39323-2.c scan-assembler .align[\\\\t ]*268435456

and it fails also on some *-linux targets in gcc-testresults:

armv5tel-unknown-linux-gnueabi
http://gcc.gnu.org/ml/gcc-testresults/2009-03/msg03064.html

powerpc-unknown-linux-gnu
http://gcc.gnu.org/ml/gcc-testresults/2009-03/msg03111.html

mipsel-unknown-linux-gnu
http://gcc.gnu.org/ml/gcc-testresults/2009-03/msg02985.html

These targets define ASM_OUTPUT_ALIGN so to output .align
directives with the log2 value of the alignment.  I've tried
the attached patch, though I'm not sure that this is a usual
way.  Also there might be another such *-linux target of which
testresults doesn't appear yet.
The patch is tested on i686-pc-linux-gnu too.

Regards,
	kaz
--
2009-04-01  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gcc.dg/pr39323-2.c: Adjust for targets which output
	.align with the exponent.

--- ORIG/trunk/gcc/testsuite/gcc.dg/pr39323-2.c	2009-03-28 09:04:03.000000000 +0900
+++ trunk/gcc/testsuite/gcc.dg/pr39323-2.c	2009-03-31 10:04:03.000000000 +0900
@@ -3,4 +3,4 @@
 
 int bar __attribute__ ((aligned(1 << 28))) =  20;
 
-/* { dg-final { scan-assembler "\.align\[\\t \]*268435456" } } */
+/* { dg-final { if { [istarget arm*-*-*] || [istarget powerpc*-*-*] || [istarget mips*-*-*] || [istarget sh*-*-*] } { scan-assembler "\.align\[\\t \]*28" } else { scan-assembler "\.align\[\\t \]*268435456" } } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]