]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: inline2.c: Replace ".*" by "\[^\n\]*".
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 10 Oct 2010 18:48:15 +0000 (18:48 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 10 Oct 2010 18:48:15 +0000 (18:48 +0000)
Backport from mainline
2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>

* gcc.dg/debug/dwarf2/inline2.c: Replace ".*" by "\[^\n\]*".

2010-03-24  Jakub Jelinek  <jakub@redhat.com>

* gcc.dg/debug/dwarf2/inline2.c (third): Make a a global var
and add volatile keyword.

2009-11-23  Steve Ellcey  <sje@cup.hp.com>

* gcc.dg/debug/dwarf2/inline2.c: Modify scan.

From-SVN: r165260

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c

index 542045ff97fa556c5c42afd230f0b225b5f7dc50..1cad602a47390b866678b2c63d88439482311ba5 100644 (file)
@@ -1,3 +1,19 @@
+2010-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       Backport from mainline
+       2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gcc.dg/debug/dwarf2/inline2.c: Replace ".*" by "\[^\n\]*".
+
+       2010-03-24  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/debug/dwarf2/inline2.c (third): Make a a global var
+       and add volatile keyword.
+
+       2009-11-23  Steve Ellcey  <sje@cup.hp.com>
+
+       * gcc.dg/debug/dwarf2/inline2.c: Modify scan.
+
 2010-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * gcc.dg/torture/pr41555.c: Require stdint types.
index 3a6318ea586c5f3d411c929514a3f81981706cda..20edb588ea85ced38e0fea03be4263d67712e02a 100644 (file)
    - One for each subroutine inlined into main, that's 3.
    - One for earch subroutine inline into the out of line instances
      of third, second and first.  */
-/* { dg-final { scan-assembler-times "\\(DIE \\(.*?\\) DW_TAG_inlined_subroutine" 6 } } */
+/* { dg-final { scan-assembler-times "\\(DIE \\(\[^\n\]*\\) DW_TAG_inlined_subroutine" 6 } } */
 
 /* Likewise we should have 6 DW_TAG_lexical_block DIEs:
    - One for each subroutine inlined into main, so that's 3.
    - One for each subroutine inlined in the out of line instances
      of third, second and first, that's 3.
 */
-/* { dg-final { scan-assembler-times "\\(DIE \\(.*?\\) DW_TAG_lexical_block" 6 } } */
+/* { dg-final { scan-assembler-times "\\(DIE \\(\[^\n\]*\\) DW_TAG_lexical_block" 6 } } */
 
 
 /* There are 3 DW_AT_inline attributes: one per abstract inline instance.
    The value of the attribute must be 0x3, meaning the function was
    actually inlined.  */
-/* { dg-final { scan-assembler-times "byte.*?0x3.*? DW_AT_inline" 3 } } */
+/* { dg-final { scan-assembler-times  "(?:byte|data1)\[^\n\]*0x3\[^\n\]* DW_AT_inline" 3 } } */
 
+volatile int *a;
 
 inline void
 third (int arg3)
 {
   int var3 = arg3;
-  int* a = 0;
   a[0] = var3;
 }