🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2806

abort in sparc gcc 1.36.91

#2806
From: eirik
Date: Sun, 07 Jan 1990 03:50
17 lines
779 bytes
The following source file causes gcc-cc1 to abort in emit_cmp_insn on a
sun4.

f(char *p, char c)
{
  return ((*p = '%' ) != c);
}

Would there be any harm in swapping the following two lines in
emit_cmp_insn?

  class = GET_MODE_CLASS (mode);

  if (mode == VOIDmode) mode = GET_MODE (y);

Before the abort, class has the value MODE_RANDOM; should it instead
have the value MODE_INT?
Technical Details
Message-ID: <9001070350.AA03916@elf.TN.Cornell.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ELF.TN.CORNELL.EDU!eirik

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ELF.TN.CORNELL.EDU!eirik
From: eirik@ELF.TN.CORNELL.EDU
Newsgroups: gnu.gcc.bug
Subject: abort in sparc gcc 1.36.91
Message-ID: <9001070350.AA03916@elf.TN.Cornell.EDU>
Date: 7 Jan 90 03:50:36 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 17