This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH COMMITTED: Moved test I recently added
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 26 Jan 2004 10:52:36 -0500
- Subject: PATCH COMMITTED: Moved test I recently added
I recently added the test 20040124-1.c to gcc.dg. However, since this
test is target independent C code which was causing a crash in the
compiler, I now see that I should have added it to
gcc.c-torture/compile. So I moved it. Committed as obvious.
Ian
2004-01-26 Ian Lance Taylor <ian@wasabisystems.com>
* gcc.dg/20040124-1.c: Moved test from here...
* gcc.c-torture/compile/20040124-1.c: ...to here.
Index: gcc.c-torture/compile/20040124-1.c
===================================================================
RCS file: gcc.c-torture/compile/20040124-1.c
diff -N gcc.c-torture/compile/20040124-1.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gcc.c-torture/compile/20040124-1.c 26 Jan 2004 15:50:57 -0000
@@ -0,0 +1,22 @@
+int
+f1 (int a, int b)
+{
+ int i, j, k;
+
+ switch (b)
+ {
+ case (-9):
+ j = 4;
+ break;
+ case (-10):
+ j = 10;
+ break;
+ case (-8):
+ j = 15;
+ break;
+ }
+
+ i = f2 (f3 (b == (-9) ? k : a), j);
+
+ return 0;
+}
Index: gcc.dg/20040124-1.c
===================================================================
RCS file: gcc.dg/20040124-1.c
diff -N gcc.dg/20040124-1.c
--- gcc.dg/20040124-1.c 24 Jan 2004 20:54:58 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,25 +0,0 @@
-/* This code crashed with the cse_condition_code_reg() pass on i686. */
-/* { dg-do compile } */
-/* { dg-options "-O2" } */
-int
-f1 (int a, int b)
-{
- int i, j, k;
-
- switch (b)
- {
- case (-9):
- j = 4;
- break;
- case (-10):
- j = 10;
- break;
- case (-8):
- j = 15;
- break;
- }
-
- i = f2 (f3 (b == (-9) ? k : a), j);
-
- return 0;
-}