[gnu.g++.bug] Sequent patch

schmidt@GLACIER.ICS.UCI.EDU ("Douglas C. Schmidt") (09/12/89)

The following patch is needed to get g++ 1.36.0- to work on the
Sequent Symmetry.  Their libraries `just say no' to ANSI-C features...

*** cplus-lex.c.~1~	Fri Sep  8 11:36:43 1989
--- cplus-lex.c	Mon Sep 11 22:30:33 1989
***************
*** 754,760 ****
--- 754,764 ----
      /* Our only interest is _ref and _expr.  */
      if (tree_code_type[i][0] == 'r' || tree_code_type[i][0] == 'e')
        {
+ #if defined (sequent)
+ 	char *end = (char *)rindex (tree_code_name[i], '_');        
+ #else
  	char *end = (char *)strrchr (tree_code_name[i], '_');
+ #endif
  	if (end)
  	  opname_end[i] = end - tree_code_name[i];
        }

Doug

schmidt@glacier.ics.uci.edu (Doug Schmidt) (09/12/89)

In article <8909112235.aa15707@PARIS.ICS.UCI.EDU>, schmidt@GLACIER ("Douglas C. Schmidt") writes:
>
>The following patch is needed to get g++ 1.36.0- to work on the
>Sequent Symmetry.  Their libraries `just say no' to ANSI-C features...

Well, I was overly optimistic.  There are still problems getting g++
to run on the Symmetry.  In particular, GNU ld doesn't seem to work
their again, and neither does the GNU assembler, gas.

If anyone has gas or gnu ld working on the Symmetry I'd like to hear
from you!

  thanks,
  
    Doug
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
office: (714) 856-4043     |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.