This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/18420] [4.0 Regression] ICE compiling mesa at -O2
- From: "jgrimm2 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2004 22:50:29 -0000
- Subject: [Bug rtl-optimization/18420] [4.0 Regression] ICE compiling mesa at -O2
- References: <20041110164413.18420.jgrimm2@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jgrimm2 at us dot ibm dot com 2004-11-10 22:50 -------
Testcase reduced from the mesa context.c file.
Compiling this with -O2 segfaults on linux-powerpc64 segfaults.
typedef unsigned int size_t;
extern void *malloc (size_t __size) __attribute__ ((__malloc__));
extern void abort(void);
struct _abc {
int ebc;
};
void xxx ( float rscale,
float gscale,
float bscale,
float ascale)
{
struct _abc *vis;
if (rscale > 255.0) abort();
if (gscale > 255.0) abort();
if (bscale > 255.0) abort();
if (ascale > 255.0) abort();
vis = (struct _abc *) malloc(sizeof(struct _abc) );
if (rscale==255.0F && gscale==255.0F
&& bscale==255.0F && ascale==255.0F) {
vis->ebc = 1;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18420