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: [PTX] Fix CFA breakage


> The recent patch to tree-nested.c:
> 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
> 
> 	PR debug/53927
> 	* tree-nested.c (finalize_nesting_tree_1): Append a field to
> 	hold the frame base address.
> 	* dwarf2out.c (gen_subprogram_die): Generate for
> 	DW_AT_static_link a location description that computes the value
> 	of this field.
> 
> broke PTX, as it tried to use argp for the CFA.

That's a misleading description, the patch makes use of BUILT_IN_DWARF_CFA, 
which is the canonical way of retrieving the CFA.  I'm not sure how it can
break a port whose handling of the CFA was not already (partially) broken.
IOW did __builtin_dwarf_cfa () really work for PTX before your patch?

-- 
Eric Botcazou


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