🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1806

Does someone have generic debugging tips for GCC

#1806
From: mcg
Date: Sun, 16 Oct 1988 07:34
22 lines
1526 bytes
I'm retargeting gcc 1.29 to a new architecture, and while the process is,
by and large, going fairly smoothly, I sometimes run into bugs that are
extremely difficult to fix.  These usually are bugs caused by subtle
ill-formed aspects of the machine-description.  The manifest themselves
by the compiler decising to abort at some stage because of invalid RTL.

For example, the most recent problem I've been tearing my hair out over
is an abort from insn_extract() from regclass().  The former routine is
clearly getting a bad insn, but there doesn't seem to be a conveniant
way of isolating the region of RTL that is causing the problem, much less
the original RTL template that are at fault.  The debugging dumps are
generally far too impenetrable to be of assistance, unless I factor the
program down to a tiny subset of its original size.

So, my question is, does anyone have tools, tips, sympathy, or other
advice for someone coming up to speed on debugging gcc?  Much thanks
for any help.

S. McGeady
mcg@iwarp.intel.com	(mcg@intel-iwarp.arpa)
mcg@omepd.intel.com	tektronix!ogcvax!omepd!mcg
Technical Details
Message-ID: <8810160734.AA04408@iwarpo3.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!INTEL-IWARP.ARPA!mcg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!INTEL-IWARP.ARPA!mcg
From: mcg@INTEL-IWARP.ARPA
Newsgroups: gnu.gcc.bug
Subject: Does someone have generic debugging tips for GCC
Message-ID: <8810160734.AA04408@iwarpo3.intel.com>
Date: 16 Oct 88 07:34:10 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 21