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]

Patch for 12028 on 3.4 branch


Since no-one seems interested in actually fixing the bug, this
changes the compilation failure into a helpful message.

Tested by building libgcc on powerpc-eabispe.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-12028-warn.patch======================
2004-02-09  Geoffrey Keating  <geoffk@apple.com>

	PR 12028
	* config/rs6000/rs6000.c (ccr_bit): Don't let consistency check
	failure stop compilation, just print helpful message.

Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.576.2.6
diff -u -p -p -u -r1.576.2.6 rs6000.c
--- config/rs6000/rs6000.c	5 Feb 2004 16:06:46 -0000	1.576.2.6
+++ config/rs6000/rs6000.c	10 Feb 2004 03:35:43 -0000
@@ -8464,7 +8464,14 @@ ccr_bit (rtx op, int scc_p)
      allowed.  */
   if (scc_p && code != EQ && code != GT && code != LT && code != UNORDERED
       && code != GTU && code != LTU)
-    abort ();
+    {
+#if ! ENABLE_CHECKING
+      if (TARGET_E500)
+	inform ("your function will be miscompiled");
+      else
+#endif
+      abort ();
+    }
   
   switch (code)
     {
============================================================


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