From patchwork Wed Sep 8 13:37:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PING] Pass --with-dwarf2 on darwin8 Date: Wed, 08 Sep 2010 03:37:59 -0000 From: Jack Howarth X-Patchwork-Id: 64130 Message-Id: <20100908133759.GA634@bromo.med.uc.edu> To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Mike, Can I get a review on... Currently on darwin8 users have to explicitly invoke --with-dwarf2 since it's Xcode defaults to stabs. The attached patch passes --with-dwarf2 on darwin8 in order to assure it builds the standard dwarf2 support. Okay for gcc trunk and gcc 4.5.2? Jack 2010-08-12 Jack Howarth * configure.ac: Pass --with-dwarf2 on darwin8. * configure: Regenerate. Thanks in advance. Jack Index: configure.ac =================================================================== --- configure.ac (revision 163079) +++ configure.ac (working copy) @@ -2506,6 +2506,16 @@ esac fi +# Default to using --with-dwarf2 on certain targets +if test x${with_dwarf2} = x ; then + case "${target}" in + *-*-darwin8*) + with_dwarf2=yes; + extra_host_args="${extra_host_args} --with-dwarf2" + ;; + esac +fi + # hpux11 in 64bit mode has libraries in a weird place. Arrange to find # them automatically. case "${host}" in