[llvm-commits] llvm-gcc4: gimplifier fixes

Devang Patel dpatel at apple.com
Thu Jan 18 14:33:45 PST 2007


On Jan 17, 2007, at 1:16 PM, Duncan Sands wrote:

> Backported from gcc-4.3.  These should only effect the Ada front-end.
>
> Index: gcc.llvm.master/gcc/tree.c
> ===================================================================
> --- gcc.llvm.master.orig/gcc/tree.c	2007-01-17 21:40:30.000000000  
> +0100
> +++ gcc.llvm.master/gcc/tree.c	2007-01-17 21:47:45.000000000 +0100
> @@ -2601,7 +2601,7 @@
>        break;
>
>      default:
> -      if (TREE_CODE_CLASS (code) == tcc_unary
> +      if ((TREE_CODE_CLASS (code) == tcc_unary || code ==  
> VIEW_CONVERT_EXPR)
>  	  && node && !TYPE_P (node)
>  	  && TREE_CONSTANT (node))
>  	TREE_CONSTANT (t) = 1;


Eric Botcazou made similar changes in next line to fix Ada. Please  
bring in entire patch and appropriate "APPLE LOCAL llvm" markers.

-
Devang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070118/15f34167/attachment.html>


More information about the llvm-commits mailing list