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]

cut&pastos in string-opt tests: strcmp returns int


Caught by a mn10300-elf toolchain (I *knew* there had to be a good
reason for pointers to be returned in different registers than
integers in at least one toolchain :-)

I'm checking this in.

Index: gcc/testsuite/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* gcc.c-torture/execute/string-opt-9.c: strcmp returns int.
	* gcc.c-torture/execute/string-opt-10.c: Likewise.

Index: gcc/testsuite/gcc.c-torture/execute/string-opt-10.c
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/gcc.c-torture/execute/string-opt-10.c,v
retrieving revision 1.3
diff -u -p -r1.3 string-opt-10.c
--- gcc/testsuite/gcc.c-torture/execute/string-opt-10.c 21 Jan 2003 19:43:53 -0000 1.3
+++ gcc/testsuite/gcc.c-torture/execute/string-opt-10.c 29 Jul 2003 06:23:38 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000  Free Software Foundation.
+/* Copyright (C) 2000, 2003  Free Software Foundation.
 
    Ensure all expected transformations of builtin strncat occur and
    perform correctly.
@@ -9,7 +9,7 @@ extern void abort (void);
 typedef __SIZE_TYPE__ size_t;
 extern char *strncat (char *, const char *, size_t);
 extern char *strcpy (char *, const char *);
-extern char *strcmp (const char *, const char *);
+extern int strcmp (const char *, const char *);
 int x = 123;
 
 int main ()
Index: gcc/testsuite/gcc.c-torture/execute/string-opt-9.c
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/gcc.c-torture/execute/string-opt-9.c,v
retrieving revision 1.3
diff -u -p -r1.3 string-opt-9.c
--- gcc/testsuite/gcc.c-torture/execute/string-opt-9.c 21 Jan 2003 19:43:53 -0000 1.3
+++ gcc/testsuite/gcc.c-torture/execute/string-opt-9.c 29 Jul 2003 06:23:38 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000  Free Software Foundation.
+/* Copyright (C) 2000, 2003  Free Software Foundation.
 
    Ensure all expected transformations of builtin strcat occur and
    perform correctly.
@@ -9,7 +9,7 @@ extern void abort (void);
 typedef __SIZE_TYPE__ size_t;
 extern char *strcat (char *, const char *);
 extern char *strcpy (char *, const char *);
-extern char *strcmp (const char *, const char *);
+extern int strcmp (const char *, const char *);
 
 int main ()
 {
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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