diff mbox series

[committed] : Add pattern for hppa*-*-linux* to dg-function-on-line

Message ID aa2e3427-2cd7-b05b-0515-8b8b6935f68e@bell.net
State New
Headers show
Series [committed] : Add pattern for hppa*-*-linux* to dg-function-on-line | expand

Commit Message

John David Anglin June 8, 2019, 12:39 a.m. UTC
As a result of moving the function label position on hppa-linux, we need a new pattern
for hppa*-*-linux* in dg-function-on-line.

Tested on hppa-unknown-linux-gnu and hppa2.0w-hp-hpux11.11.  Committed to trunk, gcc-9
and gcc-8.

Dave
diff mbox series

Patch

Index: lib/scanasm.exp
===================================================================
--- lib/scanasm.exp	(revision 271146)
+++ lib/scanasm.exp	(working copy)
@@ -508,7 +508,10 @@ 
 	}
     }

-    if { [istarget hppa*-*-*] } {
+    if { [istarget hppa*-*-linux*] } {
+	set pattern [format {%s:\n\t.PROC\n\t.CALLINFO.*\n\t.ENTRY\n.L.*:\n(\t.file[^\t]*)*\t[^:]+:%d(:[0-9]+)?\n} \
+                     $symbol $line]
+    } elseif { [istarget hppa*-*-*] } {
 	set pattern [format {\t;[^:]+:%d(:[0-9]+)?\n(\t[^\t]+\n)+%s:\n\t.PROC} \
                      $line $symbol]
     } elseif { [istarget mips*-*-*] } {