sparc bug effecting the release
Jeffrey A Law
law@cygnus.com
Sat Aug 29 00:37:00 GMT 1998
This is the xfig miscompilation Kate mentioned about a week ago.
Using the egcs-1.1 branch sources, target sparc-sun-solaris2.5
Compile with -O2 and note this instruction near the end of the
function:
std %f4,[%sp+100] ! 29 *movdf_insn/2
sp+100 only has 4 byte alignment. This (of course) causes xfig to
segfault.
typedef struct { } FILE;
typedef struct f_ellipse {
int fill_style;
int depth;
int pen_style;
float style_val;
float angle;
int direction;
}
F_ellipse;
write_ellipse(fp, e)
FILE *fp;
F_ellipse *e;
{
fprintf(fp, "%d %d %d %.3f %d %.4f \n",
e->depth, e->pen_style, e->fill_style,
e->style_val, e->direction, e->angle);
}
jeff
More information about the Gcc-bugs
mailing list