Hi Devang,

> > -      if (TREE_CODE_CLASS (code) == tcc_unary
> > +      if ((TREE_CODE_CLASS (code) == tcc_unary || code ==  
> 
> Eric Botcazou made similar changes in next line to fix Ada. Please  
> bring in entire patch and appropriate "APPLE LOCAL llvm" markers.

I sent the minimal change needed to get Ada to build further, but I've
certainly got nothing against the rest of Eric's patch, so here is the
full version (it may also be useful for Fortran):

Index: gcc.llvm.master/gcc/tree.c
===================================================================
--- gcc.llvm.master.orig/gcc/tree.c     2007-01-21 23:09:08.000000000 +0100
+++ gcc.llvm.master/gcc/tree.c  2007-01-22 14:34:55.000000000 +0100
@@ -2601,11 +2601,13 @@
       break;
 
     default:
-      if (TREE_CODE_CLASS (code) == tcc_unary
+      /* APPLE LOCAL llvm */
+      if ((TREE_CODE_CLASS (code) == tcc_unary || code == VIEW_CONVERT_EXPR)
          && node && !TYPE_P (node)
          && TREE_CONSTANT (node))
        TREE_CONSTANT (t) = 1;
-      if (TREE_CODE_CLASS (code) == tcc_unary
+      /* APPLE LOCAL llvm */
+      if ((TREE_CODE_CLASS (code) == tcc_unary || code == VIEW_CONVERT_EXPR)
          && node && TREE_INVARIANT (node))
        TREE_INVARIANT (t) = 1;
       if (TREE_CODE_CLASS (code) == tcc_reference
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to