This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
sparc bug effecting the release
- To: rth at cygnus dot com, davem at dm dot cobaltmicro dot com
- Subject: sparc bug effecting the release
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 29 Aug 1998 01:02:58 -0600
- Cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
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