Re: [patch] Fix PR lto/50492

2011-10-07 Thread Richard Guenther
On Fri, Oct 7, 2011 at 1:37 PM, Eric Botcazou wrote: >> Hm, but canonicalize_cond_expr_cond is supposed to produce a >> tree that is suitable for a condition in a GIMPLE_COND, or a >> COND_EXPR.  So the issue is that it is used for a tcc_comparison >> on a assignment RHS? > > It is called on (Ada_

Re: [patch] Fix PR lto/50492

2011-10-07 Thread Eric Botcazou
> Hm, but canonicalize_cond_expr_cond is supposed to produce a > tree that is suitable for a condition in a GIMPLE_COND, or a > COND_EXPR. So the issue is that it is used for a tcc_comparison > on a assignment RHS? It is called on (Ada_Boolean_Type) iftmp.xxx, which comes from the RHS of Ada_B

Re: [patch] Fix PR lto/50492

2011-10-07 Thread Richard Guenther
On Fri, Oct 7, 2011 at 12:37 PM, Eric Botcazou wrote: > Hi, > > this is another LTO bootstrap failure with Ada enabled.  There are 2 problems: > >  1. dwarf2out.c thinks that it is processing pure C++ code for gnat1 so it is > invoking some C++-specific code paths that aren't compatible with Ada.

[patch] Fix PR lto/50492

2011-10-07 Thread Eric Botcazou
Hi, this is another LTO bootstrap failure with Ada enabled. There are 2 problems: 1. dwarf2out.c thinks that it is processing pure C++ code for gnat1 so it is invoking some C++-specific code paths that aren't compatible with Ada. Fixed by building TRANSLATION_UNIT_DECL nodes in Ada as well.