Displaying 3 results from an estimated 3 matches for "gfc_conv_structur".
Did you mean:
gfc_conv_structure
2006 Sep 06
2
[LLVMdev] gfortran: array constructor problems
...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 else, and I didn't want to work on that just yet.
To crash gfortr...
2006 Sep 05
2
[LLVMdev] gfortran: array constructor problems
...lt;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
problems that would cause), find a way to communic...
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
>