Message ID | CAFULd4YjX+F+iwTYnWwr0agcA15=EHA3PQiOMWUOGTs1S+m5LQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 02/01/2016 03:05 PM, Uros Bizjak wrote: > Hello! > > This test case fails for targets, where dwarf-4 is unsupported (e.g. > CentOS 5.11) with > > /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only > handles version 2 information. > > We can use -gdwarf-2 here, and still get correct linker error message > on Cent OS 5.11 and Fedora 23. > > 2016-02-01 Uros Bizjak <ubizjak@gmail.com> > > * g++.dg/other/anon5.C (dg-opetions): Use -gdwarf-2 instead of -g. OK. jeff
On 01/02/16 23:10, Jeff Law wrote: > On 02/01/2016 03:05 PM, Uros Bizjak wrote: >> Hello! >> >> This test case fails for targets, where dwarf-4 is unsupported (e.g. >> CentOS 5.11) with >> >> /usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only >> handles version 2 information. >> >> We can use -gdwarf-2 here, and still get correct linker error message >> on Cent OS 5.11 and Fedora 23. >> >> 2016-02-01 Uros Bizjak <ubizjak@gmail.com> >> >> * g++.dg/other/anon5.C (dg-opetions): Use -gdwarf-2 instead of -g. > OK. Hi, Backported testcase fix to 5 branch. Thanks, - Tom
Index: g++.dg/other/anon5.C =================================================================== --- g++.dg/other/anon5.C (revision 233041) +++ g++.dg/other/anon5.C (working copy) @@ -1,6 +1,6 @@ // PR c++/34094 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } -// { dg-options "-g" } +// { dg-options "-gdwarf-2" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ // Ignore additional messages on Linux/x86 with PIE