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 tree_function_versioning with void type DECL_RESULT (PR tree-optimization/51865)


> The recent changes in tree_function_versioning broke the following
> testcase.  If DECL_RESULT exists, but has void type, then we used to
> remap_decl it before, but now we don't, so in this case the same
> RESULT_DECL is used in two different functions, which upsets ipa-pta, but
> could upset other code too.
>
> Fixed by calling remap_decl again for void type.  Bootstrapped/regtested
> on x86_64-linux and i686-linux (on x86_64 including ada).  Ok for trunk?
>
> 2012-01-15  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR tree-optimization/51865
> 	* tree-inline.c (tree_function_versioning): Call remap_decl
> 	on DECL_RESULT whenever it has VOID_TYPE_P type.
>
> 	* gcc.dg/pr51865.c: New test.

Thanks for fixing this!

-- 
Eric Botcazou


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