Can't build gcc cvs trunk 20050409 gnat tools on sparc-linux: tree check: accessed operand 2 of view_convert_expr with 1 operands in visit_assignment, at tree-ssa-ccp.c:1074

Andrew Pinski pinskia@physics.uc.edu
Mon Apr 11 19:57:00 GMT 2005


On Apr 11, 2005, at 3:55 PM, Alexandre Oliva wrote:

> Index: varasm.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
> retrieving revision 1.495
> diff -u -p -d -u -p -d -u -p -r1.495 varasm.c
> --- varasm.c	9 Apr 2005 20:41:49 -0000	1.495
> +++ varasm.c	11 Apr 2005 19:55:05 -0000
> @@ -307,7 +307,7 @@ in_unlikely_text_section (void)
>        cfun = DECL_STRUCT_FUNCTION (current_function_decl);
>
>        ret_val = ((in_section == in_unlikely_executed_text)
> -		 || (in_section == in_named
> +		 || (in_section == in_named && cfun
>  		     && cfun->unlikely_text_section_name
>  		     && strcmp (in_named_name,
>  				cfun->unlikely_text_section_name) == 0));

Also note Caroline is testing a patch to fix this and the other
fall out due to her hot/cold patch.

Thanks,
Andrew Pinski



More information about the Gcc mailing list