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]

minor testsuite changes



This patch:
- Adds a new test that fails, and is a regression since GCC 3.0.2;
  perhaps related to the recent inlining changes
- Removes a spurious failure on xstormy16 caused by 16-bit int.

Tested on powerpc-eabisim & xstormy16-elf.

-- 
Geoff Keating <geoffk@redhat.com>

===File ~/patches/gcc-stormy-moretests.patch================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ChangeLog,v
retrieving revision 1.1416
diff -p -u -p -r1.1416 ChangeLog
--- ChangeLog	2001/11/15 02:32:38	1.1416
+++ ChangeLog	2001/11/15 03:52:56
@@ -1,5 +1,10 @@
 2001-11-14  Geoffrey Keating  <geoffk@redhat.com>
 
+	* gcc.dg/noncompile/920923-1.c: stormy16 produces an extra error
+	message.
+
+	* gcc.c-torture/execute/20011114-1.c: New testcase.
+
 	* gcc.c-torture/compile/20010327-1.c: Revert last change.
 	* gcc.c-torture/compile/20011114-1.c: New test, exactly
 	like the (before this change) version of 20010327-1.c.
Index: gcc.c-torture/execute/20011114-1.c
===================================================================
RCS file: 20011114-1.c
diff -N 20011114-1.c
--- /dev/null	Tue May  5 13:32:27 1998
+++ 20011114-1.c	Wed Nov 14 19:52:57 2001
@@ -0,0 +1,11 @@
+char foo(char bar[])
+{
+  return bar[1];
+}
+extern char foo(char *);
+int main(void)
+{
+  if (foo("xy") != 'y')
+    abort ();
+  exit (0);
+}
Index: gcc.dg/noncompile/920923-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/noncompile/920923-1.c,v
retrieving revision 1.3
diff -p -u -p -r1.3 920923-1.c
--- 920923-1.c	2000/09/17 07:38:22	1.3
+++ 920923-1.c	2001/11/15 03:52:58
@@ -115,7 +115,7 @@ init_mem()
 			  "mem_hash != (prec_t)0", 370, "b.c"),
 		0)));
      flush_hash(mem_hash, 32);
-     build_ptables(mem_base, 1024*(1<<13));
+     build_ptables(mem_base, 1024*(1<<13)); /* { dg-bogus "integer overflow" "int smaller than 32 bits" { xfail "xstormy16-*-*" } } */
 }
 
 struct tm {
============================================================


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