Re: [PATCH] dwarf2out: Fix up add_scalar_info not to create invalid DWARF

2020-12-02 Thread Jeff Law via Gcc-patches
On 12/2/20 9:48 AM, Jakub Jelinek via Gcc-patches wrote: > Hi! > > As discussed in https://sourceware.org/bugzilla/show_bug.cgi?id=26987 , > for very large bounds (which don't fit into HOST_WIDE_INT) GCC emits invalid > DWARF. > In DWARF2, DW_AT_{lower,upper}_bound were constant reference class.

[PATCH] dwarf2out: Fix up add_scalar_info not to create invalid DWARF

2020-12-02 Thread Jakub Jelinek via Gcc-patches
Hi! As discussed in https://sourceware.org/bugzilla/show_bug.cgi?id=26987 , for very large bounds (which don't fit into HOST_WIDE_INT) GCC emits invalid DWARF. In DWARF2, DW_AT_{lower,upper}_bound were constant reference class. In DWARF3 they are block constant reference and the Static and Dynamic