This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][PING] Pass --with-dwarf2 on darwin8
On Thu, Sep 09, 2010 at 04:41:07AM -0700, Mike Stump wrote:
> On Sep 8, 2010, at 3:59 PM, IainS wrote:
> > Nothing m64 works with stabs, ergo you can't build a working set of multilibs.
>
> $ gcc -arch ppc64 -c -gstabs t.c
> $ gcc -arch ppc64 -gstabs t.c -isysroot/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
> $ gdb ./a.out
> (gdb) ptype f
> type = float
> (gdb) ptype d
> type = double
>
> So, clearly, something works. I don't have gmp and the rest of the libs built, so I didn't compile up the top of the tree, but I did compile up the 4_2 branch on my x86 box as a native powerpc-apple-darwin8 build and it built the multilib just fine. Further, it did a stage 2/3 compare and that worked just fine. Does the 4_2 tree build for you? If so, this would be a regression, so the next question would be, what patch regressed the building of the multilib and which regressed the compare?
Mike,
I don't have a darwin8 system to check on, but the offending builds on powerpc 10.4 which fail have been
configured as...
../gcc-4.5.1/configure --prefix=/sw --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.5/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.5
FYI.
Jack
>
> > Also when I last tried it, compare-debug was unreliable for STABs creating some bootstrap problems.
>
> Sounds like a darwin8 version of PR41224? If exactly that bug, it is fixed. If not, then I'd say, please file a PR for darwin8 for compare-debug. I think the right approach is for the person that broke that, to suggest a patch forward. Possibly, we just turn off compare debug on ``broken'' systems, and list darwin8 as a broken system (unless dwarf2 is selected of course).
>
> > Therefore I would recommend to build trunk with dwarf-2 ...
>
> I'd like to retain the option of building stabs...
>
> > FWIW, I don't recall having had any (more serious than usual) issues with dwarf-2 debug on ppc d8.
>
> Do you debug C++ extensively? Run the gdb testsuite?
>
> > Maybe what we do need to do is to create a wiki page
>
> Ick. I'd rather turn on dwarf2 than work around it in the doc...