]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adapt gcc.dg/debug/dwarf2/prod-options.c for Solaris assembler
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 24 Feb 2016 14:46:07 +0000 (14:46 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 24 Feb 2016 14:46:07 +0000 (14:46 +0000)
* gcc.dg/debug/dwarf2/prod-options.c: Use different DW_AT_producer
pattern on Solaris with as.

From-SVN: r233668

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/prod-options.c

index bbc005e60ae4295718105512c4520cb463533946..d956d00569faeac49d87bccf08e4fa1f3ea9fb32 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * gcc.dg/debug/dwarf2/prod-options.c: Use different DW_AT_producer
+       pattern on Solaris with as.
+
 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * gcc.target/arm/cond_sub_restrict_it.c: New test.
index 21449f92d6d2a68e857a5f520309b7addf25b72e..8db8b394d211bb9b83fd10f548accf093eec0e1e 100644 (file)
@@ -4,7 +4,8 @@
    as well.  */
 /* { dg-do compile } */
 /* { dg-options "-O2 -gdwarf -dA -fdebug-prefix-map=a=b" } */
-/* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" } } */
+/* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" { target { { ! *-*-solaris2* } || gas } } } } */
+/* { dg-final { scan-assembler "\"GNU C\[^\\n\\r\]+ DW_AT_producer" { target { *-*-solaris2* && { ! gas } } } } } */
 /* { dg-final { scan-assembler-not "debug-prefix-map" } } */
 
 void func (void)