Commit 678127a8 by Alan Modra Committed by Alan Modra

gcc testsuite changes for new linker messages

GNU ld error messages have changed to comply with the GNU coding
standards.

	* lib/prune.exp (prune_gcc_output): Match lower case "in function"
	GNU ld message.
	* g++.dg/other/anon5.C: Match lower case "bad value" GNU ld message.

From-SVN: r258054
parent 408e8935
2018-02-28 Alan Modra <amodra@gmail.com>
* lib/prune.exp (prune_gcc_output): Match lower case "in function"
GNU ld message.
* g++.dg/other/anon5.C: Match lower case "bad value" GNU ld message.
2018-02-27 Martin Sebor <msebor@redhat.com> 2018-02-27 Martin Sebor <msebor@redhat.com>
PR c++/83871 PR c++/83871
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// Ignore additional message on powerpc-ibm-aix // Ignore additional message on powerpc-ibm-aix
// { dg-prune-output "obtain more information" } */ // { dg-prune-output "obtain more information" } */
// Ignore additional messages on Linux/x86 with PIE // Ignore additional messages on Linux/x86 with PIE
// { dg-prune-output "Bad value" } */ // { dg-prune-output "\[Bb\]ad value" } */
namespace { namespace {
struct c struct c
......
...@@ -31,7 +31,7 @@ proc prune_gcc_output { text } { ...@@ -31,7 +31,7 @@ proc prune_gcc_output { text } {
# Handle any freeform regexps. # Handle any freeform regexps.
set text [handle-dg-regexps $text] set text [handle-dg-regexps $text]
regsub -all "(^|\n)(\[^\n\]*: )?In ((static member |lambda )?function|member|method|(copy )?constructor|destructor|instantiation|substitution|program|subroutine|block-data)\[^\n\]*" $text "" text regsub -all "(^|\n)(\[^\n\]*: \[iI\]|I)n ((static member |lambda )?function|member|method|(copy )?constructor|destructor|instantiation|substitution|program|subroutine|block-data)\[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*(: )?At (top level|global scope):\[^\n\]*" $text "" text regsub -all "(^|\n)\[^\n\]*(: )?At (top level|global scope):\[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: (recursively )?required \[^\n\]*" $text "" text regsub -all "(^|\n)\[^\n\]*: (recursively )?required \[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: . skipping \[0-9\]* instantiation contexts \[^\n\]*" $text "" text regsub -all "(^|\n)\[^\n\]*: . skipping \[0-9\]* instantiation contexts \[^\n\]*" $text "" text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment