[committed] Fix dwarf-float.c test in testsuite
authorJeff Law <law@redhat.com>
Tue, 19 Jan 2021 15:35:55 +0000 (08:35 -0700)
committerJeff Law <law@redhat.com>
Tue, 19 Jan 2021 15:35:55 +0000 (08:35 -0700)
gcc/testsuite
* gcc.dg/debug/dwarf2/dwarf-float.c: Force dwarf-4 generation
and update expected output.

gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-float.c

index f488384..51f5977 100644 (file)
@@ -1,11 +1,11 @@
 /* Verify the DWARF encoding of C99 floating point types.  */
 
 /* { dg-do compile } */
-/* { dg-options "-O0 -gdwarf -dA" } */
-/* { dg-final { scan-assembler "0x4.*DW_AT_encoding" } } */
-/* { dg-final { scan-assembler "0x4.*DW_AT_byte_size" } } */
-/* { dg-final { scan-assembler "0x8.*DW_AT_byte_size" } } */
-/* { dg-final { scan-assembler "0x10.*DW_AT_byte_size" } } */
+/* { dg-options "-O0 -gdwarf-4 -dA" } */
+/* { dg-final { scan-assembler "0x4\[^\\r\\n]*DW_AT_encoding" } } */
+/* { dg-final { scan-assembler "0x4\[^\\r\\n]*DW_AT_byte_size" } } */
+/* { dg-final { scan-assembler "0x8\[^\\r\\n]*DW_AT_byte_size" { target double64 } } } */
+/* { dg-final { scan-assembler "0x10\[^\\r\\n]*DW_AT_byte_size" { target longdouble128 }} } */
 
 void foo ()
 {