Re: [llvm-commits] llvm-gcc: only call rest_of_decl_compilation on VAR_DECLs in EmitBIND_EXPR

2007-03-02 Thread Duncan Sands
Ada testcase triggering this. Index: llvm/test/AdaFrontend/emit_var.ads === --- /dev/null 1970-01-01 00:00:00.0 + +++ llvm/test/AdaFrontend/emit_var.ads 2007-03-02 12:50:25.0 +0100 @@ -0,0 +1,5 @@ +-- RUN: %llvmgcc

Re: [llvm-commits] llvm-gcc: only call rest_of_decl_compilation on VAR_DECLs in EmitBIND_EXPR

2007-03-02 Thread Chris Lattner
On Feb 28, 2007, at 3:09 AM, Duncan Sands wrote: The variable expansion part of EmitBIND_EXPR is clearly based on expand_var in expr.c, however unlike expand_var it doesn't check for VAR_DECL before calling rest_of_decl_compilation. This patch adds the check. Without it, the Ada run-time

[llvm-commits] llvm-gcc: only call rest_of_decl_compilation on VAR_DECLs in EmitBIND_EXPR

2007-02-28 Thread Duncan Sands
The variable expansion part of EmitBIND_EXPR is clearly based on expand_var in expr.c, however unlike expand_var it doesn't check for VAR_DECL before calling rest_of_decl_compilation. This patch adds the check. Without it, the Ada run-time fails to build due to rest_of_decl_compilation getting