This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Bug fortran/32732] [Bind C] Character scalars are passed as arrays
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: crickett at lanl dot gov
- Cc: burnus at net-b dot de, fortran at gcc dot gnu dot org
- Date: Thu, 26 Jul 2007 13:50:48 -0700 (PDT)
- Subject: Re: [Bug fortran/32732] [Bind C] Character scalars are passed as arrays
> 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