Preliminary tests show that the patch fixes the issue.

Thanks,

Dominique

> Le 29 août 2016 à 21:41, Jakub Jelinek <ja...@redhat.com> a écrit :
> 
> Hi!
> 
> 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?
> 
> 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.
> 
> --- gcc/testsuite/g++.dg/debug/dwarf2/template-params-12f.C.jj        
> 2016-08-12 11:12:46.000000000 +0200
> +++ gcc/testsuite/g++.dg/debug/dwarf2/template-params-12f.C   2016-08-29 
> 12:39:54.562411107 +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\]*_ZN1S1fEv\[^\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"
> 
>       Jakub

Reply via email to