* [patch] Fix ICE in resolve_args_picking_1 with -gsplit-dwarf
@ 2019-05-27 8:53 Eric Botcazou
2019-05-27 14:21 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Eric Botcazou @ 2019-05-27 8:53 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
The function simply doesn't handle the new location expression opcodes coming
from DebugFission (https://gcc.gnu.org/wiki/DebugFission). Fixed by making it
handle them like DW_OP_addr and DW_OP_const*.
OK for mainline and the active branches (it's a regression from GCC 5)?
2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
* dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
and DW_OP_GNU_const_index opcodes.
2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/array4.ads: New test.
--
Eric Botcazou
[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 406 bytes --]
Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 271106)
+++ dwarf2out.c (working copy)
@@ -17906,6 +17906,8 @@ resolve_args_picking_1 (dw_loc_descr_ref
case DW_OP_push_object_address:
case DW_OP_call_frame_cfa:
case DW_OP_GNU_variable_value:
+ case DW_OP_GNU_addr_index:
+ case DW_OP_GNU_const_index:
++frame_offset_;
break;
[-- Attachment #3: array4.ads --]
[-- Type: text/x-adasrc, Size: 345 bytes --]
-- { dg-do compile }
-- { dg-skip-if "missing -gsplit-dwarf support" { *-*-darwin* } }
-- { dg-options "-gsplit-dwarf" }
package Array4 is
type Arr1 is array (Positive range <>) of Boolean;
Size : Positive := 20;
type Rec is record
A : Arr1 (1 .. Size);
end record;
type Arr2 is array (Positive range <>) of Rec;
end Array4;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Fix ICE in resolve_args_picking_1 with -gsplit-dwarf
2019-05-27 8:53 [patch] Fix ICE in resolve_args_picking_1 with -gsplit-dwarf Eric Botcazou
@ 2019-05-27 14:21 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2019-05-27 14:21 UTC (permalink / raw)
To: Eric Botcazou; +Cc: GCC Patches
On Mon, May 27, 2019 at 10:32 AM Eric Botcazou <ebotcazou@adacore.com> wrote:
>
> The function simply doesn't handle the new location expression opcodes coming
> from DebugFission (https://gcc.gnu.org/wiki/DebugFission). Fixed by making it
> handle them like DW_OP_addr and DW_OP_const*.
>
> OK for mainline and the active branches (it's a regression from GCC 5)?
OK.
>
> 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
>
> * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
> and DW_OP_GNU_const_index opcodes.
>
>
> 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
>
> * gnat.dg/specs/array4.ads: New test.
>
> --
> Eric Botcazou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-27 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 8:53 [patch] Fix ICE in resolve_args_picking_1 with -gsplit-dwarf Eric Botcazou
2019-05-27 14:21 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).