From 082b966fdc1d7f2514b040411f0c1ee6515b8348 Mon Sep 17 00:00:00 2001 From: Jack Howarth Date: Fri, 10 Dec 2010 10:40:43 +0000 Subject: [PATCH] dsymutil enabled for Fortran. 2010-12-10 Jack Howarth Iain Sandoe PR 43751/target gcc: * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types. testsuite: * lib/prune.exp: Prune dsymutil warnings. libstadc++-v3: * testsuite/lib/prune.exp: Prune dsymutil warnings. Co-Authored-By: Iain Sandoe From-SVN: r167683 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin9.h | 2 +- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/prune.exp | 4 +++- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/testsuite/lib/prune.exp | 5 +++++ 6 files changed, 27 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6828fcdcd0ea..f07a6de8f032 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-10 Jack Howarth + Iain Sandoe + + PR 43751/target + * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types. + 2010-12-10 Iain Sandoe * config/rs6000/rs6000.c diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index 65d3cb84dbf0..828118372824 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{v} \ %{g*:%{!gstabs*:%{!g0: -idsym}}}\ - %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm|.s: \ + %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm|.s|.f|.f90|.f95|.f03|.f77|.for|.F|.F90|.F95|.F03: \ %{g*:%{!gstabs*:%{!g0: -dsym}}}}}}}}}}}" /* Tell collect2 to run dsymutil for us as necessary. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index afba479e3c79..b2978f05511f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-12-10 Jack Howarth + Iain Sandoe + + PR 43751/target + * lib/prune.exp: Prune dsymutil warnings. + 2010-12-10 Nicola Pero * objc.dg/class-extension-1.m: New. diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index 0ec277bd78a2..4e08bf3d1ccd 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -54,7 +54,9 @@ proc prune_gcc_output { text } { # Ignore harmless warnings from Xcode 3.2.x. regsub -all "(^|\n)\[^\n\]*ld: warning: can't add line info to anonymous symbol\[^\n\]*" $text "" text - + regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*_bound\[^\n\]*FORM_ref4\[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*warning:\[^\n\]*TAG_variable: AT_location\[^\n\]*didn't have valid function low pc\[^\n\]*" $text "" text + #send_user "After:$text\n" return $text diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2f7f245c78ac..b11c4c525967 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2010-12-10 Jack Howarth + Iain Sandoe + + PR 43751/target + * testsuite/lib/prune.exp: Prune dsymutil warnings. + 2010-12-08 Nathan Froyd PR testsuite/46860 diff --git a/libstdc++-v3/testsuite/lib/prune.exp b/libstdc++-v3/testsuite/lib/prune.exp index a390878d76ff..a1d8d083e580 100644 --- a/libstdc++-v3/testsuite/lib/prune.exp +++ b/libstdc++-v3/testsuite/lib/prune.exp @@ -50,6 +50,11 @@ proc libstdc++-dg-prune { system text } { regsub -all "(^|\n)\[^\n\]*: Additional NOP may be necessary to workaround Itanium processor A/B step errata" $text "" text regsub -all "(^|\n)\[^\n*\]*: Assembler messages:\[^\n\]*" $text "" text + # Ignore harmless warnings from Xcode 3.2.x. + regsub -all "(^|\n)\[^\n\]*ld: warning: can't add line info to anonymous symbol\[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*_bound\[^\n\]*FORM_ref4\[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*warning:\[^\n\]*TAG_variable: AT_location\[^\n\]*didn't have valid function low pc\[^\n\]*" $text "" text + foreach p $additional_prunes { if { [string length $p] > 0 } { # Following regexp matches a complete line containing $p.