This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Backport changes to gcc.dg/debug/dwarf2/inline2.c to 4.4
- From: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 10 Oct 2010 14:53:12 -0400
- Subject: [committed] Backport changes to gcc.dg/debug/dwarf2/inline2.c to 4.4
- Reply-to: John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
On 4.4 branch, gcc.dg/debug/dwarf2/inline2.c fails on hppa64-hp-hpux11.11
because of the scan problem fixed by Steve. I backported the full set
of changes to this test.
Tested on hppa64-hp-hpux11.11. Committed to 4.4.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
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.
Index: gcc.dg/debug/dwarf2/inline2.c
===================================================================
--- gcc.dg/debug/dwarf2/inline2.c (revision 165233)
+++ gcc.dg/debug/dwarf2/inline2.c (working copy)
@@ -21,27 +21,27 @@
- 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;
}