On Mon, 17 Jun 2013, Andi Kleen wrote:

> 
> Current trunk cannot build LTO kernels now, with your patch, 
> as reported earlier.
> 
> Please fix ASAP. I'm surprised that you checked in a patchkit
> with such serious reported problems.
> 
> -Andi
> 
> 
> backup/lsrc/git/linux-lto-2.6/lib/decompress_unlzo.c: In function 'unlzo':
> /backup/lsrc/git/linux-lto-2.6/lib/decompress_unlzo.c:79:8: internal compiler 
> error: in expand_expr_real_1, at expr.c:9361
>   parse += 7;
>         ^
> 0x5ea175 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, 
> expand_modifier, rtx_def**)
>         ../../gcc/gcc/expr.c:9356

That suggests

Index: gcc/expr.c
===================================================================
--- gcc/expr.c  (revision 200164)
+++ gcc/expr.c  (working copy)
@@ -9353,7 +9353,7 @@ expand_expr_real_1 (tree exp, rtx target
       /* Variables inherited from containing functions should have
         been lowered by this point.  */
       context = decl_function_context (exp);
-      gcc_assert (!context
+      gcc_assert (SCOPE_FILE_SCOPE_P (context)
                  || context == current_function_decl
                  || TREE_STATIC (exp)
                  || DECL_EXTERNAL (exp)

might fix it.

Richard.

Reply via email to