[Bug fortran/32732] [Bind C] Character scalars are passed as arrays
Steve Ellcey
sje@cup.hp.com
Thu Jul 26 20:51:00 GMT 2007
> could you add the following three lines after the line you mentioned from
> generate_local_decl:
>
> DECL_BY_REFERENCE (sym->backend_decl) = 0;
> DECL_ARG_TYPE (sym->backend_decl) = TREE_TYPE
> (sym->backend_decl);
> DECL_MODE (sym->backend_decl) =
> TYPE_MODE (TREE_TYPE (sym->backend_decl));
I added them in and they seem to fix the problem. I only tried my small
testcase, I didn't do a full build and test. I will add these lines to
my nightly build and see what happens there.
Steve Ellcey
sje@cup.hp.com
More information about the Fortran
mailing list