Message ID | 6A677CA7-C679-4FE1-9838-8D14227DEF37@lps.ens.fr |
---|---|
State | New |
Headers | show |
On Sep 4, 2016, at 10:23 AM, Dominique d'Humières <dominiq@lps.ens.fr> wrote: > > The same should apply to g++.dg/debug/dwarf2/template-params-12g.C: > > --- ../_clean/gcc/testsuite/g++.dg/debug/dwarf2/template-params-12g.C 2016-08-12 09:59:34.000000000 +0200 > +++ gcc/testsuite/g++.dg/debug/dwarf2/template-params-12g.C 2016-08-30 11:36:48.000000000 +0200 > @@ -1,4 +1,4 @@ > -// { dg-options "-gdwarf-2 -dA" } > +// { dg-options "-gdwarf-2 -gno-strict-dwarf -dA" } > // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param" 1 } } > // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param\[^\n\]*\n\[^\n\]* DW_AT_name\n\[^\n\]* DW_AT_type\n\[^\n\]*\[^\n\]* DW_AT_location\n\[^\n\]* DW_OP_addr\n\[^\n\]*_ZN1B1gEv\[^\n\]*\n\[^\n\]* DW_OP_stack_value\n\[^\n\]* DW_OP_piece\n\[^\n\]*\n\[^\n\]* DW_OP_lit0\n\[^\n\]* DW_OP_stack_value\n\[^\n\]* DW_OP_piece" 1 } } > #include "template-params-12.H » > > Unless someone objects, I’ll commit the patch in the coming days. Ok. > I also noticed that the same should apply to g++.dg/debug/dwarf2/imported-decl-2.C (pr57519). Is it OK to commit the following patch to trunk and the gcc-5 and 6 branches? Ok.
--- ../_clean/gcc/testsuite/g++.dg/debug/dwarf2/template-params-12g.C 2016-08-12 09:59:34.000000000 +0200 +++ gcc/testsuite/g++.dg/debug/dwarf2/template-params-12g.C 2016-08-30 11:36:48.000000000 +0200 @@ -1,4 +1,4 @@ -// { dg-options "-gdwarf-2 -dA" } +// { dg-options "-gdwarf-2 -gno-strict-dwarf -dA" } // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param" 1 } } // { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_template_value_param\[^\n\]*\n\[^\n\]* DW_AT_name\n\[^\n\]* DW_AT_type\n\[^\n\]*\[^\n\]* DW_AT_location\n\[^\n\]* DW_OP_addr\n\[^\n\]*_ZN1B1gEv\[^\n\]*\n\[^\n\]* DW_OP_stack_value\n\[^\n\]* DW_OP_piece\n\[^\n\]*\n\[^\n\]* DW_OP_lit0\n\[^\n\]* DW_OP_stack_value\n\[^\n\]* DW_OP_piece" 1 } } #include "template-params-12.H » Unless someone objects, I’ll commit the patch in the coming days. I also noticed that the same should apply to g++.dg/debug/dwarf2/imported-decl-2.C (pr57519). Is it OK to commit the following patch to trunk and the gcc-5 and 6 branches? --- ../_clean/gcc/testsuite/g++.dg/debug/dwarf2/imported-decl-2.C 2015-09-26 23:16:11.000000000 +0200 +++ gcc/testsuite/g++.dg/debug/dwarf2/imported-decl-2.C 2015-09-26 23:16:55.000000000 +0200 @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-gdwarf-2 -dA -O0 -fno-merge-debug-strings" } +// { dg-options "-gdwarf-2 -gno-strict-dwarf -dA -O0 -fno-merge-debug-strings" } class AAAA {