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]

sparc bug effecting the release



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


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