This is the mail archive of the gcc@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]

Re: gcc.c-torture/execute/va-arg-trap-1.c ICE on powerpc-apple-darwin9


On Fri, Feb 20, 2009 at 06:08:36PM +0000, Joseph S. Myers wrote:
> My guess would be that some of the code for handling va_list being an 
> array is needed in the case of generating a trap as well.
> 
>       if (TREE_CODE (have_va_type) == ARRAY_TYPE)
> 	{
> 	  if (TREE_CODE (TREE_TYPE (valist)) == ARRAY_TYPE)
> 	    {
> 	      tree p1 = build_pointer_type (TREE_TYPE (have_va_type));
> 	      valist = build_fold_addr_expr_with_type (valist, p1);
> 	    }
> 	}
> 
> (before gimplify_and_add (valist, pre_p);).
> 
> -- 
> Joseph S. Myers
> joseph@codesourcery.com

FYI, these testcases are also failing on powerpc-ibm-aix5.3.0.0...

http://gcc.gnu.org/ml/gcc-testresults/2009-02/msg01950.html

               Jack


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