[gnu.gcc.bug] code gen bug in gcc 1.34 on 386

johnl@HARVARD.HARVARD.EDU (John R. Levine) (06/06/89)

The following short routine makes gcc 1.34 on a 386 call abort().  It
compiles OK on a 68000.  I note that there is an entry in the template
table for multiplying two chars to get a short, and that the 386 seems
to be the only machine that actually has such a template.  If I comment
out the template, gcc generates correct code that isn't much worse than
the optimal; maybe it'd be easier to take out the template.

John Levine, johnl@ima.isc.com or Levine@yale.edu

PS:  Did anybody ever do anything with the subset Fortran parser that I
sent in?  I have a better version that I'll send along sooner or later.

f()
  {   
  short foo;
  unsigned char  bar;

  foo = (bar * 3);
  }