search for: gfc_conv_array_initializer

Displaying 3 results from an estimated 3 matches for "gfc_conv_array_initializer".

2006 Sep 06
2
[LLVMdev] gfortran: array constructor problems
...constant, even though the overall tree was. This caused a problem when being translated into LLVM. This works on my test case, which looked like this: type :: foo integer :: a integer :: b end type foo type (foo), parameter :: A(2) = (/ foo(1,2), foo(2,4) /) There is at least one other point in gfc_conv_array_initializer() where they build tree lists of structures using gfc_conv_structure(). That part should probably set each tree's constant flag as well, probably on line 2843. However, I couldn't test that change, since the only way I could think of to get to that code path will crash gfortran somewhere el...
2006 Sep 05
2
[LLVMdev] gfortran: array constructor problems
...e49860 purpose <field_decl 0x45e4c280 range> value <integer_cst 0x45e23db0 1>>>> I'm having a hard time mapping this output to what I expected from the structure, but that may be my inexperience with gcc internals. For how to fix this, it seems like the problem here is in gfc_conv_array_initializer() (trans-array.c:2905) , where gfc_conv_structure() is called for EXPR_STRUCTURES in an array initializer, even if it should be constant, and gfc_conv_structure() doesn't set the constant_flag of the expression. My first guess is that we might need to either relax the assertion (not sure what p...
2006 Sep 06
0
[LLVMdev] gfortran: array constructor problems
On Tue, 5 Sep 2006, Michael McCracken wrote: > Hi, in order to get a handle on the questions in Chris's previous > email, I rebuilt LLVM with debugging info, and then rebuilt gcc4 with > CHECKING_ENABLED. > > In the process, I ran into an assertion error when compiling the first > part of libgfortran: ok. > ../../src/gcc/llvm-convert.cpp:3871: failed assertion >