Update testsuite/pr18689.sh for older GCC
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Jul 2015 19:18:06 +0000 (12:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 20 Jul 2015 19:20:46 +0000 (12:20 -0700)
Older GCC, like 4.2, generates .debug_macinfo section instead of
.debug_macro section.  This patch updates testsuite/pr18689.sh to
support it.

gold/testsuite/pr18689.sh

index 822ed11..9ca1dfb 100755 (executable)
@@ -23,6 +23,6 @@
 
 set -e
 
-egrep -q "..debug_macro[ ]+*" pr18689.stdout
+egrep -q "..debug_mac[ro|info][ ]+*" pr18689.stdout
 
 exit 0