This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PTX] Fix CFA breakage
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Nathan Sidwell <nathan at acm dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 29 Nov 2015 10:03:56 +0100
- Subject: Re: [PTX] Fix CFA breakage
- Authentication-results: sourceware.org; auth=none
- References: <565A3837 dot 8090002 at acm dot org>
> 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