From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D0993851C10; Tue, 20 Jul 2021 23:58:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D0993851C10 From: "me at larbob dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61577] [4.9.0 Regression] can't compile on hp-ux v3 ia64 Date: Tue, 20 Jul 2021 23:58:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: major X-Bugzilla-Who: me at larbob dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2021 23:58:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61577 --- Comment #263 from Larkin Nickle --- I'm having trouble actually getting a GDB that can read the resulting symbo= ls properly.=20 readelf --debug-dump=3Dinfo cc1 | grep -A 2 'Compilation Unit @' Compilation Unit @ offset 0x0: Length: 0xa390 (32-bit) Version: 2 As shown above, using readelf, I've confirmed I am now getting DWARF2 symbo= ls, but I'm unable to read them with my own built GDB 7.3.1 or GDB 7.5.1 from http://ftp.nluug.nl/os/HPUX/itrc/gcc-4.7.2-11.31.sd.bz. HP GDB 6.7 is able = to handle them somewhat: Object file is generated with GNU compiler: GNU C++17 11.1.0 -g -O2 -fno-PIE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables HP WDB does not support debugging of programs compiled with GNU compiler. Some features may work, but it is not guaranteed. HP recommends using HP aCC compiler, Refer: http://www.hp.com/go/aCC Refer http://www.hp.com/go/wdb for the support statement done. Running cc1 w/ the arguments that lead to the illegal instruction error (as verified with -v): Program received signal SIGILL, Illegal instruction si_code: 9 - ILL_REGNAT - Register NaT Consumption. 0x54af7f0:1 in get_ref_base_and_extent (exp=3D, poffset=3D, psize=3D, pmax_size=3D, preverse=3D) at ../../gcc/tree-dfa.c:525 525 maxsize =3D wi::to_poly_offset (asize) - bit_offs= et; However, trying to get a backtrace with `bt` results in HP GDB core dumping: #0 0x54af7f0:1 in get_ref_base_and_extent (exp=3D, poffset=3D, psize=3D, pmax_size=3D, preverse=3D) at ../../gcc/tree-dfa.c:525 Assertion failed: stacki =3D=3D 0, file ../../../Src/gnu/gdb/dwarf2read.c, = line 1579 ABORT instruction (core dumped)=