[PATCH, testsuite]: Use -gdwarf-2 for g++.dg/other/anon5.C
Uros Bizjak
ubizjak@gmail.com
Mon Feb 1 22:05:00 GMT 2016
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.
Tested on x86_64-linux-gnu, CentOS 5.11 and Fedora 23.
OK for mainline?
Uros.
-------------- next part --------------
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
More information about the Gcc-patches
mailing list