gcc-2.8.1
tar zxvf gcc-2.8.1.tar.gz
cd gcc-2.8.1/
setenv SGI_ABI "-32"
setenv CC gcc
diff -rc2 collect2.c.org collect2.c
*** /tmp/gcc-2.8.1/collect2.c.org       Thu May  7 11:56:36 1998
--- /tmp/gcc-2.8.1/collect2.c   Thu May  7 11:54:16 1998
***************
*** 917,921 ****
       char *argv[];
  {
!   char *ld_suffix     = "ld";
    char *full_ld_suffix        = ld_suffix;
    char *real_ld_suffix        = "real-ld";
--- 917,921 ----
       char *argv[];
  {
!   char *ld_suffix     = "/usr/lib/old_ld";
    char *full_ld_suffix        = ld_suffix;
    char *real_ld_suffix        = "real-ld";
***************
*** 1393,1398 ****
    /* Load the program, searching all libraries.  */
  
!   collect_execute ("ld", ld1_argv, ldout);
!   do_wait ("ld");
    dump_file (ldout);
    unlink (ldout);
--- 1393,1398 ----
    /* Load the program, searching all libraries.  */
  
!   collect_execute ("/usr/lib/old_ld", ld1_argv, ldout);
!   do_wait ("/usr/lib/old_ld");
    dump_file (ldout);
    unlink (ldout);
***************
*** 1497,1501 ****
  
    fork_execute ("gcc",  c_argv);
!   fork_execute ("ld", ld2_argv);
  
    /* Let scan_prog_file do any final mods (OSF/rose needs this for
--- 1497,1501 ----
  
    fork_execute ("gcc",  c_argv);
!   fork_execute ("/usr/lib/old_ld", ld2_argv);
  
    /* Let scan_prog_file do any final mods (OSF/rose needs this for
./configure --with-gnu-as --with-stabs --host=mips-sgi-irix5.3 \
--target=mips-sgi-irix5.3 --build=mips-sgi-irix5.3
make
make stage1
diff -rc2 include/stdlib.h.org include/stdlib.h
*** include/stdlib.h.org    Thu Oct 15 02:03:19 1998
--- include/stdlib.h    Thu Oct 15 02:55:12 1998
***************
*** 269,273 ****
  #endif
  #if defined(__USE_FIXED_PROTOTYPES__) || defined(__cplusplus) || defined (__ST
RICT_ANSI__)
! extern int putenv (char *);
  #endif /* defined(__USE_FIXED_PROTOTYPES__) || ... */
  #ifdef __cplusplus
--- 269,273 ----
  #endif
  #if defined(__USE_FIXED_PROTOTYPES__) || defined(__cplusplus) || defined (__ST
RICT_ANSI__)
! extern int putenv (const char *);
  #endif /* defined(__USE_FIXED_PROTOTYPES__) || ... */
  #ifdef __cplusplus
make CC="stage1/xgcc -Bstage1/"
make stage2
make CC="stage2/xgcc -Bstage2/"
make CC="stage2/xgcc -Bstage2/" compare
make CC="stage2/xgcc -Bstage2/" install

[Ìá¤ë]