Displaying 3 results from an estimated 3 matches for "expr_structur".
Did you mean:
expr_structure
2006 Sep 05
2
[LLVMdev] gfortran: array constructor problems
...>>
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 communicate that the
structure is inten...
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
>
2006 Sep 06
2
[LLVMdev] gfortran: array constructor problems
...t sure when I'll get to
testing the structure-copying construction.
Index: gcc/fortran/trans-array.c
===================================================================
--- gcc/fortran/trans-array.c (revision 160)
+++ gcc/fortran/trans-array.c (working copy)
@@ -2903,6 +2903,7 @@
case EXPR_STRUCTURE:
gfc_conv_structure (&se, c->expr, 1);
+ TREE_CONSTANT (se.expr) = 1;
list = tree_cons (index, se.expr, list);
break;
Here's the second patch:
Index: gcc/fortran/trans-array.c
=============================================================...