https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119220

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|hppa64-hp-hpux11.11         |hppa64-hp-hpux11.11
                   |                            |*-*-darwin*
               Host|hppa64-hp-hpux11.11         |
     Ever confirmed|0                           |1
   Target Milestone|---                         |15.0
             Status|UNCONFIRMED                 |NEW
            Summary|FAIL:                       |[15 Regression] FAIL:
                   |gcc.dg/debug/dwarf2/inline2 |gcc.dg/debug/dwarf2/inline2
                   |.c scan-assembler-times     |.c scan-assembler-times
                   |DW_AT_entry_pc 6            |DW_AT_entry_pc 6
              Build|hppa64-hp-hpux11.11         |
   Last reconfirmed|                            |2025-03-12
          Component|debug                       |testsuite

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
dwarf2out.cc:

          if (! dwarf_strict && dwarf_version < 4)
            add_AT_addr (main_comp_unit_die, DW_AT_entry_pc, const0_rtx, true);
...
      if (debug_variable_location_views && !ZERO_VIEW_P (ied->view)
          && !dwarf_strict)
        {
          if (!output_asm_line_debug_info ())
            add_AT_unsigned (die, DW_AT_GNU_entry_view, ied->view);


pa.cc:
...
  if (TARGET_64BIT && TARGET_HPUX)
    {
      /* DWARF5 is not supported by gdb.  Don't emit DWARF5 unless
         specifically selected.  */
      if (!OPTION_SET_P (dwarf_strict))
        dwarf_strict = 1;



So maybe just need -gno-strict-dwarf to the testcase.

This testcase will also fail on some other targets too for the same reason:
*-*-darwin*
s390*-tpf*
csky with TPF
*-*-vxworks*

Reply via email to