https://issues.apache.org/bugzilla/show_bug.cgi?id=52900

--- Comment #10 from Rainer Jung <[email protected]> ---
The minimal test case and the slightly larger one fail with -O2 when compiling
for 64 Bits on Sparc with recent GCC (4.7.1 and 4.7.2 for me, *not* 4.6.3 for
me, but likely also 4.6.3 for the OP, maybe due to the version of GMP, MPC or
MPFR used?).

Error is

error: invalid (misaligned) register

due to the line

fdtox   %f8, %f9

It seems the second register must have an even number.

The slightly bigger test case also fails for O1 and for simple -O with a
different error:

test.c: In function 'buggy':
test.c:13:1: error: insn does not satisfy its constraints:
(insn 126 42 43 3 (set (reg:HI 40 %f8 [orig:120 D.1367 ] [120])
        (reg:HI 42 %f10)) test.c:6 58 {*movhi_insn}
     (nil))
test.c:13:1: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:403
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This minimal test case does not fail with "-O1" or "-O", probably because of
another register allocation strategy due to the missing second code path.

I'll open a GCC bug report.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to