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]

Re: [PATCH] Fix decl_overlaps_hard_reg_set_p (4.1 regression, PR middle-end/26334)


On Sun, Feb 19, 2006 at 04:35:02PM +0100, Eric Botcazou wrote:
> > 	* gcc.dg/20060218-1.c: New test.
> 
> It doesn't pass on SPARC:
> 
> poog% gcc/xgcc -Bgcc -S 20060218-1.c
> 20060218-1.c: In function 'foo':
> 20060218-1.c:6: error: register specified for 'cc' isn't suitable for data 
> type

Either following patch could help, or moving the test to say
gcc.target/i386/.

2006-02-19  Jakub Jelinek  <jakub@redhat.com>

	* gcc.dg/20060218-1.c: Adjust expected error message.

--- gcc/testsuite/gcc.dg/20060218-1.c.jj	2006-02-18 09:28:12.000000000 +0100
+++ gcc/testsuite/gcc.dg/20060218-1.c	2006-02-19 18:44:11.000000000 +0100
@@ -3,6 +3,6 @@
 void
 foo (void)
 {
-  register int cc __asm ("cc"); /* { dg-error "invalid register name" } */
+  register int cc __asm ("cc"); /* { dg-error "register" } */
   __asm ("" : : "r" (cc) : "cc");
 }


	Jakub


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