This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug fortran/32732] [Bind C] Character scalars are passed as arrays


hi Steve,

thanks for testing this out. i've now bootstrapped and regtested the change on x86 and x86_64 linux with no new failures.

Chris

On Thu, 26 Jul 2007, Steve Ellcey wrote:

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]