GCC build in 64 bit OS failure

Segher Boessenkool segher@kernel.crashing.org
Mon Sep 4 14:21:00 GMT 2017


Hi,

On Mon, Sep 04, 2017 at 06:36:25AM -0500, vikram1729 wrote:
> We are building GCC 4.1.2 cross toolchain for our custom processor in 64 bit
> OS environment. Our custom processor is 32 bit. We faced with the following
> ICE. This error did not come in 32 bit OS environment and toolchain build
> successfully. 

That compiler is over ten years old.  You might want to upgrade ;-)

> t.c:3: error: unrecognizable insn:
> (insn 22 21 23 (set:SI (reg:SI 19 r19)
>         (lo_sum:SI (reg:SI 19 r19)
>             (const_int 4294967280 [0xfffffff0]))) -1 (nil)
>     (nil))

It looks like you meant -16 instead.  Somewhere (could be anywhere
really) you are treating the offset as an unsigned int instead of as
a HOST_WIDE_INT?

See where the wrong offset first appears (use -da for example), and
work from there finding the problem.

Good luck & have fun,


Segher



More information about the Gcc-help mailing list