Patchwork Fix line number tests on ia64

login
register
mail settings
Submitter Jeffrey Yasskin
Date July 21, 2010, 6:41 p.m.
Message ID <AANLkTimUJgQ7-LfUdGRq73Adx2Na8mRA2kfr-ogjYwoW@mail.gmail.com>
Download mbox | patch
Permalink /patch/59487/
State New
Headers show

Comments

Jeffrey Yasskin - July 21, 2010, 6:41 p.m.
IA64 uses // instead of # for comments in its assembly file.


2010-07-21  Jeffrey Yasskin  <jyasskin@google.com>

	PR c++/44641
	* lib/scanasm.exp (dg-function-on-line): Fix regex for IA64's comments.
Diego Novillo - July 21, 2010, 6:42 p.m.
On 10-07-21 14:41 , Jeffrey Yasskin wrote:
> IA64 uses // instead of # for comments in its assembly file.
>
>
> 2010-07-21  Jeffrey Yasskin<jyasskin@google.com>
>
> 	PR c++/44641
> 	* lib/scanasm.exp (dg-function-on-line): Fix regex for IA64's comments.

OK.


Diego.

Patch

Index: gcc/testsuite/lib/scanasm.exp
===================================================================
--- gcc/testsuite/lib/scanasm.exp	(revision 162381)
+++ gcc/testsuite/lib/scanasm.exp	(working copy)
@@ -316,7 +316,7 @@  proc dg-function-on-line { args } {
 	}
     }
 
-    set pattern [format {%s:[^\t]*(\t.file[^\t]*)?\t# \S*:%d\n} \
+    set pattern [format {%s:[^\t]*(\t.file[^\t]*)?\t[^:]+:%d\n} \
                  $symbol $line]
 
     # The lack of spaces around $pattern is important, since they'd