This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Debugging ICE


Steve Pribyl wrote:
What is the recommended way to debug a gcc ICE?
gcc is clever enough to cover its tracks when something goes horribly wrong.

compile it from the gcc object directory -- this will create an unoptimized compiler. Then fire up gdb on cc1 (or cc1plus). Then invoke that as the gcc driver would have done.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]