This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH] Fix for PR fortran/21375


Steve Kargl wrote:
> On Sat, Jun 11, 2005 at 03:03:41PM +0200, Tobias Schl?ter wrote:
> Sigh.  I wish either you or Paul B would take the time to
> explain how one works within the poorly commented/documented
> trans-*.[ch] files when these minor little nits arise.  While
> self-education is a wonderful thing, for many of us spare time
> to work on gfortran is very limited.  
> 
> Fine I changed gfc_build_builtin_function_decls() to include
> 
>   tree gfc_pint4_type_node = build_pointer_type (gfc_int4_type_node);
> 
>   gfor_fndecl_deallocate =
>     gfc_build_library_function_decl (get_identifier (PREFIX("deallocate")),
> 				     void_type_node, 2, ppvoid_type_node,
> 				     gfc_pint4_type_node);
> 
> Seems to work ok.
> 
> I then change gfc_trans_deallocate() to include
> 
>   tree gfc_int4_type_node = gfc_get_int_type (4);
> 
>   else
>     {
>       pstat = apstat = build_pointer_type (gfc_int4_type_node);
> 
> KABOOOMMMMMM.

Sorry, I should have said that this should be something like
   fold_convert (gfc_pint4_type_node, null_pointer_node)

- Tobi


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