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]

Committed: fix parameter signedness mismatch in testsuite for asmregbug


The mismatch made gcc emit a warning (a behavior that changed
within the last months it seems), which caused the test-case to
fail in the result.  I checked that the actual bug still trigs
for an old buggy gcc version after this change. This testcase
only runs on cris-*.

	* gcc.dg/asmreg-1.c (__syscall_getdents64): Adjust signedness
	declaration/use mismatch for dirp parameter.

Index: asmreg-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/asmreg-1.c,v
retrieving revision 1.1
diff -p -c -u -p -r1.1 asmreg-1.c
cvs diff: conflicting specifications of output style
--- asmreg-1.c	22 Feb 2003 03:21:27 -0000	1.1
+++ asmreg-1.c	12 Sep 2004 23:29:28 -0000
@@ -22,7 +22,7 @@ struct kernel_dirent64
 };

 static inline int __attribute__ ((__always_inline__))
-__syscall_getdents64 (int fd, unsigned char * dirp, unsigned count)
+__syscall_getdents64 (int fd, char * dirp, unsigned count)
 {
   register unsigned long __sys_res asm ("r10");
   register unsigned long __r10 __asm__ ("r10") = (unsigned long) fd;

brgds, H-P


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