This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Skip g++.dg/other/anon5.C for mips*-elf* targets on 4.3


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 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]