🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #430

g++ 1.36.0- (approx date Sept 2nd)

#430
From: Briggs.pa
Date: Mon, 18 Sep 1989 05:10
32 lines
1272 bytes
In gcc 1.35.98, the code generated by genextract for insn-extract.c aborts
on illegal insns with a call to abort().

In gcc 1.35.99 this has been replaced by a call to
fatal_insn_not_found(insn), a function which is now provided in gcc's
toplev.c

If you attempt to build a g++ based on gcc-1.35.99 (using the genextract
from that release) cc1plus fails to load because the function
fatal_insn_not_found is not provided by the g++ toplev.c.

I believe diffs for an appropriate patch to g++'s toplev.c would be:

*** toplev.c.orig	Thu Sep  7 09:29:29 1989
--- toplev.c	Sun Sep 17 22:58:13 1989
***************
*** 475,480 ****
--- 475,488 ----
    error (s, v);
    exit (34);
  }
+ void
+ fatal_insn_not_found (insn)
+      rtx insn;
+ {
+   error ("The followin insn was not recognizable:" , 0);
+   debug_rtx (insn);
+   abort ();
+ }
  
  static int need_error_newline;
  
Technical Details
Message-ID: <890917-220720-6016@Xerox>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!XEROX.COM!Briggs.pa

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!XEROX.COM!Briggs.pa
From: Briggs.pa@XEROX.COM
Newsgroups: gnu.g++.bug
Subject: g++ 1.36.0- (approx date Sept 2nd)
Message-ID: <890917-220720-6016@Xerox>
Date: 18 Sep 89 05:10:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32