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]

Re: [PATCH] almost-trivial fix for MIPS -mlong64 + -membedded-pic


"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
> On 22 Mar 2001, Chris G. Demetriou wrote:
> > For a simple test like:
> 
> You have a testcase, so your patch ought to add it to the testsuite.
> Given the specialised option / target requirements, gcc.dg seems like the
> right place.

So, i looked at this, and here's my thinking:

In order to be an adequate test for this problem, this would have to
be a 'dg-do run' test, limited to MIPS targets that could hope to run
it.  There's no trouble compiling it, so just 'compile' wouldn't show
the problem.

dg-options would have to include "-membedded-pic".


So, unfortunately, as far as I can tell, this won't work:

In order to create an output file to run, you need a properly-PIC
(i.e., also -membedded-pic) set of runtime files to link against.  (In
the absence of that, ld will barf.)  No target that i'm aware of
builds an embedded-pic runtime or embedded-pic libs by default...

I don't see any way to have a test inspect assembly output (and that
doesn't surprise me; that'd be both difficult and fragile).


Any ideas?


chris


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