This is the mail archive of the gcc-bugs@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]

[Solaris 8/SPARC V9] C ICE in verify_local_live_at_start


The current (as of yesterday) CVS version of gcc gets an ICE on the
following input, on 64-bit Solaris 8/SPARC.  Without -O, the same code
compiles fine.

> gcc -m64 -O -v -c getflt.i
Reading specs from /vol/gcc/lib/gcc-lib/sparc-sun-solaris2.8/2.96/specs
gcc version 2.96 20000725 (experimental)
 /vol/gcc/lib/gcc-lib/sparc-sun-solaris2.8/2.96/cc1 getflt.i -mptr64 -mstack-bias -mno-v8plus -mcpu=v9 -quiet -dumpbase getflt.i -m64 -O -version
GNU C version 2.96 20000725 (experimental) (sparc-sun-solaris2.8) compiled by GNU C version 2.96 20000725 (experimental).
getflt.i: In function `getflt':
getflt.i:22: Internal compiler error in verify_local_live_at_start, at flow.c:2729
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

typedef unsigned char u_char;
union uval {
        u_char bd[8];
        int iv;
        float fv;
        double dv;
};
static float
getflt(
        u_char *bp
        )
{
        union uval uval;

        uval.bd[0] = *bp++;
        uval.bd[1] = *bp++;
        uval.bd[2] = *bp++;
        uval.bd[3] = *bp;

        return uval.fv;
}

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE

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