help with gcc bugs

Ben Elliston bje@au.ibm.com
Wed Apr 14 06:24:00 GMT 2004


clarke micheal <operationgcc@yahoo.com> writes:

> * for all the bugs that are reported against a particular version of
> gcc, is there any way to find what files in the gcc source code
> caused those bugs...in other way....

Not that easily.

If the bug you are looking at generates an internal compiler error
(ICE), then you have a good starting point.  Run the compiler under
GDB from the GCC build directory and it will use a .gdbinit script
that will set breakpoints at useful functions.  When the ICE occurs,
you can get a stack backtrace and start from there.

> or........among all the changes that were made to the source code
> ,which changes are made to fix some bug...

The ChangeLog entries frequently cite the PR number that the patch
fixes.

Cheers, Ben



More information about the Gcc mailing list