Waldek Hebisch wrote:
Adriaan van Os wrote:
Thanks, this fixes the problem. New testsuite results on powerpc- apple-darwin8 (with -gdwarf-2) are given below.
AFAICS most new failures are related to `-flongjmp-all-nonlocal-labels' option which is on by default for Mac OSX. With this option fjf1062a.pas, fjf1062b.pas, fjf1062c.pas, nmaze.pas, permute.pas, peter5c.pas, peter5f.pas also fail on AMD64 (all of them passes without `-flongjmp-all-nonlocal-labels').
Right, these tests all pass on Mac OS X with --no-longjmp-all-nonlocal-labels.
With that option, I can now build and debug a typical Mac OS X GUI app (from the GPC Xcode Kit) with the gcc-4 based compiler and -gdwarf-2. My first impression is that debugging (with Xcode as front-end) has quite improved as compared to -gstabs (apart from the line-number problem). I will try to patch the installed system gdb with your gdb dwarf patches and then report the result.
In particular fjf1062[abc].pas looks like a generic backend bug. I reported it as: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26983
Thanks.
We will see if it gets fixed -- I am glad it's reproducable with Linux and AMD also (...).
Regards,
Adriaan van Os