linux-mips
[Top] [All Lists]

gcc crash

To: linux-mips mailing list <linux-mips@oss.sgi.com>
Subject: gcc crash
From: Kjeld Borch Egevang <kjelde@mips.com>
Date: Thu, 27 Sep 2001 16:59:47 +0200 (CEST)
Sender: owner-linux-mips@oss.sgi.com
When I compile the following function with "gcc -O2" the compiler crashes.
Is this a known problem?

static float sp_f2l(float x)
{
    long l, *xl;
    float y;

    xl = (void *)&y;
    l = x;
    *xl = l;
    return y;
}

I use gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-97.2)

/Kjeld

-- 
_    _ ____  ___                       Mailto:kjelde@mips.com
|\  /|||___)(___    MIPS Denmark       Direct: +45 44 86 55 85
| \/ |||    ____)   Lautrupvang 4 B    Switch: +45 44 86 55 55
  TECHNOLOGIES      DK-2750 Ballerup   Fax...: +45 44 86 55 56
                    Denmark            http://www.mips.com/


<Prev in Thread] Current Thread [Next in Thread>