https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121366

--- Comment #7 from kargls at comcast dot net ---
(In reply to kargls from comment #5)
> (In reply to Jerry DeLisle from comment #4)
> > What is different about sind? (obvious question)
> 
> It's for degree sin functions.  Originally, we tried to use on
> gfc_resolve_trig() to build the library function names for
> the different functions.  It was then re-used with the half-cycle
> functions.  The problem is obviously the f->value.function.isym
> is NULL in
> 
>     = gfc_get_string (PREFIX ("%s_%c%d"), f->value.function.isym->name,
> 
> Grepping the source, one sees that this is the only set of functions
> that try to reference f->value.function.isym on the RHS.  I have a
> patch cooking.  We basically need to add new functions such as
> 
> gfc_resolve_sind (gfc_expr *f, gfc_expr *x)
> {
>   f->ts = x->ts;
>   f->value.function.name
>     = gfc_get_string (PREFIX ("%sind_%c%d"), gfc_type_letter (x->ts.type),
>                     gfc_type_abi_kind (&x->ts));
> }

This is taking me down a rabbit hole of odd function handling.

Reply via email to