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 822ed1173299a4ad0d00e6f95d47e8ecaefe3544..9ca1dfb634e649d8c2ea558d2a2fc48d1d2bb0d0 100755 (executable)
@@ -23,6 +23,6 @@
 
 set -e
 
-egrep -q "..debug_macro[ ]+*" pr18689.stdout
+egrep -q "..debug_mac[ro|info][ ]+*" pr18689.stdout
 
 exit 0