This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bad indentation and strange code in fortran/trans-array.c
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Tue, 31 Jan 2006 18:03:12 -0800
- Subject: Re: Bad indentation and strange code in fortran/trans-array.c
- References: <20060201015704.GB18072@lucon.org>
On Tue, Jan 31, 2006 at 05:57:04PM -0800, H. J. Lu wrote:
> Around line 3923 in fortran/trans-array.c, there are
>
> if (expr->ts.type == BT_CHARACTER)
> {
> gcc_assert (expr->ts.cl && expr->ts.cl->length
> && expr->ts.cl->length->expr_type == EXPR_CONSTANT);
> loop.temp_ss->string_length = gfc_conv_mpz_to_tree
> (expr->ts.cl->length->value.integer,
> expr->ts.cl->length->ts.kind);
> expr->ts.cl->backend_decl = loop.temp_ss->string_length;
> }
> loop.temp_ss->data.temp.type = gfc_typenode_for_spec (&expr->ts);
> ^^^^^^^^^^^^^^^
> Bad indentation.
>
If you go looking through the gfortran sources, you'll find
all sorts of GNU style violations. Many are historical from
when g95 was first integrated into GCC as gfortran.
> Also why are there duplicated
I can't answer that question.
--
Steve