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: [PATCH] fix a failure for ARM


Adam Nemet <anemet@Lnxw.COM> writes:

> Hi,
> 
> The testcase gcc.c-torture/compile/20000804-1.c fails with -mthumb
> -fPIC -mpic-register=6.  It turned out to be a reload issue.
> 
> In order to reload the __complex__ long long variable from the stack
> before the asm statement, gen_reload calls gen_move_insn which emits
> one DI move for the real part and one for the imaginary part.  The
> problem is that since the address itself has to be reloaded ((fp -
> const_int) in not a legitimate address with Thumb), splitting the move
> kills the substitution of the address part.
> 
> I applied Richard Kenner's solution with multi-word moves in the same
> function, see http://gcc.gnu.org/ml/gcc-patches/2000-04/msg00554.html.

You probably want to read

http://gcc.gnu.org/ml/gcc-patches/2000-04/msg01148.html

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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