]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc testsuite changes for new linker messages
authorAlan Modra <amodra@gmail.com>
Wed, 28 Feb 2018 08:07:35 +0000 (18:37 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 28 Feb 2018 08:07:35 +0000 (18:37 +1030)
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: r258056

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/anon5.C
gcc/testsuite/lib/prune.exp

index 92a58e5a49bdda6f0ab1fdd6b305c5b773dbfa83..b1abb943e576894dc6eead4ae35fc19d1b9e0538 100644 (file)
@@ -1,3 +1,9 @@
+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-25  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/83633
index 2a6f57f12bccc0c71a1fddc3c0c5cdbdc650065e..ee4601e270e0b6b6bd0a306f8e6fc11ac9d8cd78 100644 (file)
@@ -4,7 +4,7 @@
 // Ignore additional message on powerpc-ibm-aix
 // { dg-prune-output "obtain more information" } */
 // Ignore additional messages on Linux/x86 with PIE
-// { dg-prune-output "Bad value" } */
+// { dg-prune-output "\[Bb\]ad value" } */
 
 namespace {
   struct c
index ab6f3697ff8a300ebfcc47f59c94d34c65f86dd2..2a89c35f57664bd1d986d4f9ab6ead322c5e37f6 100644 (file)
@@ -28,7 +28,7 @@ proc prune_gcc_output { text } {
 
     #send_user "Before:$text\n"
 
-    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\]*:   (recursively )?required \[^\n\]*" $text "" text
     regsub -all "(^|\n)\[^\n\]*:   . skipping \[0-9\]* instantiation contexts \[^\n\]*" $text "" text