[llvm-commits] CVS: gcc-3.4/gcc/fold-const.c

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 7 22:05:01 PST 2004


Changes in directory gcc-3.4/gcc:

fold-const.c updated: 1.3 -> 1.4

---
Log message:

Disable some buggy gcc code


---
Diffs of the changes:  (+7 -0)

Index: gcc-3.4/gcc/fold-const.c
diff -u gcc-3.4/gcc/fold-const.c:1.3 gcc-3.4/gcc/fold-const.c:1.4
--- gcc-3.4/gcc/fold-const.c:1.3	Thu Feb  5 10:05:44 2004
+++ gcc-3.4/gcc/fold-const.c	Sun Mar  7 22:04:31 2004
@@ -6999,6 +6999,13 @@
       /* Convert foo++ == CONST into ++foo == CONST + INCR.
 	 First, see if one arg is constant; find the constant arg
 	 and the other one.  */
+
+        /* FIXME: this transformation is broken.  The patch is here:
+             http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00582.html
+          When we merge in the new bits, this EMIT_LLVM guard can be fixed.
+          Until then we want a WORKING C front-end.
+        */
+      if (!EMIT_LLVM)
       {
 	tree constop = 0, varop = NULL_TREE;
 	int constopnum = -1;





More information about the llvm-commits mailing list