This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Skip g++.dg/other/anon5.C for mips*-elf* targets on 4.3
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, jakub at redhat dot com, richard dot guenther at gmail dot com, joseph at codesourcery dot com
- Date: Tue, 19 Feb 2008 09:16:40 +0000
- Subject: Re: RFA: Skip g++.dg/other/anon5.C for mips*-elf* targets on 4.3
- References: <87bq6dyh5f.fsf@firetop.home> <47BA185D.4020308@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
> Richard Sandiford wrote:
>
>> gcc/testsuite/
>> * g++.dg/other/anon5.C: Skip for MIPS ELF targets.
>
> OK, but please add a comment explaining what's going on, or -- even
> better -- with a pointer to the Binutils PR.
Thanks, here's what I installed.
Richard
gcc/testsuite/
* g++.dg/other/anon5.C: Skip for MIPS ELF targets.
Index: gcc/testsuite/g++.dg/other/anon5.C
===================================================================
--- gcc/testsuite/g++.dg/other/anon5.C (revision 132416)
+++ gcc/testsuite/g++.dg/other/anon5.C (working copy)
@@ -1,5 +1,10 @@
// PR c++/34094
-// { dg-do link }
+// The error is reported for mips*-elf* targets, but as of binutils CVS
+// 2008-02-19, the linker cannot find the associated source line. The
+// problem is that mips*-elf tests run from KSEG0 (which is in the upper
+// half of the address range), and the linker compares sign-extended
+// addresses from .debug_aranges with unextended addresses.
+// { dg-do link { target { ! mips*-*-elf* } } }
// { dg-options "-g" }
namespace {