diff mbox

[testsuite] : Use -gdwarf-2 for g++.dg/other/anon5.C

Message ID CAFULd4YjX+F+iwTYnWwr0agcA15=EHA3PQiOMWUOGTs1S+m5LQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Feb. 1, 2016, 10:05 p.m. UTC
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.

Comments

Jeff Law Feb. 1, 2016, 10:10 p.m. UTC | #1
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
Tom de Vries Aug. 29, 2016, 7:22 a.m. UTC | #2
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
diff mbox

Patch

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