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.

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
 {

TIA

Dominique

> Le 30 août 2016 à 02:41, Mike Stump <mikest...@comcast.net> a écrit :
> 
> On Aug 29, 2016, at 12:41 PM, Jakub Jelinek <ja...@redhat.com> wrote:
>> 
>> This testcase expects to find DWARF extensions, but those are disabled by
>> default on darwin/vxworks because broken tools there don't handle debug info
>> very well.
>> 
>> I think the following patch (regtested on x86_64-linux and i686-linux)
>> should fix it, but I have no access to darwin, so can't verify.
>> 
>> Ok for trunk?
> 
> Ok.  :-)
> 
>> 
>> 2016-08-29  Jakub Jelinek  <ja...@redhat.com>
>> 
>>      PR debug/77389
>>      * g++.dg/debug/dwarf2/template-params-12f.C: Pass -gno-strict-dwarf
>>      in dg-options.

Reply via email to