NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/38023: Build fails in tools/gcc on OS/X 10.5 "Leopard"



The following reply was made to PR toolchain/38023; it has been noted by GNATS.

From: Thor Lancelot Simon <tls%coyotepoint.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/38023: Build fails in tools/gcc on OS/X 10.5 "Leopard"
Date: Wed, 13 Feb 2008 16:03:59 -0500

 On Wed, Feb 13, 2008 at 08:25:00PM +0000, gnats-admin%netbsd.org@localhost 
wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `toolchain/38023'.
 > The individual assigned to look at your
 > report is: toolchain-manager. 
 > 
 > >Category:       toolchain
 > >Responsible:    toolchain-manager
 > >Synopsis:       Build fails in tools/gcc on OS/X 10.5 "Leopard"
 > >Arrival-Date:   Wed Feb 13 20:25:00 +0000 2008
 
 Here is a patch.  I do not know how to feed it back to gcc.
 
 Index: gcc/config/rs6000/host-darwin.c
 ===================================================================
 RCS file: /cvsroot/src/gnu/dist/gcc4/gcc/config/rs6000/host-darwin.c,v
 retrieving revision 1.1.1.1
 diff -u -p -r1.1.1.1 host-darwin.c
 --- gcc/config/rs6000/host-darwin.c    20 Apr 2006 09:47:56 -0000      1.1.1.1
 +++ gcc/config/rs6000/host-darwin.c    13 Feb 2008 21:01:00 -0000
 @@ -33,10 +33,6 @@ static void segv_crash_handler (int);
  static void segv_handler (int, siginfo_t *, void *);
  static void darwin_rs6000_extra_signals (void);
  
 -/* This doesn't have a prototype in signal.h in 10.2.x and earlier,
 -   fixed in later releases.  */
 -extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
 -
  #undef HOST_HOOKS_EXTRA_SIGNALS
  #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals
  
 @@ -68,7 +64,11 @@ segv_handler (int sig ATTRIBUTE_UNUSED,
    sigaddset (&sigset, SIGSEGV);
    sigprocmask (SIG_UNBLOCK, &sigset, NULL);
  
 +#if __DARWIN_UNIX03
 +  faulting_insn = *(unsigned *)uc->uc_mcontext->__ss.__srr0;
 +#else
    faulting_insn = *(unsigned *)uc->uc_mcontext->ss.srr0;
 +#endif
  
    /* Note that this only has to work for GCC, so we don't have to deal
       with all the possible cases (GCC has no AltiVec code, for
 @@ -116,8 +116,13 @@ segv_handler (int sig ATTRIBUTE_UNUSED,
        exit (FATAL_EXIT_CODE);
      }
  
 +#if __DARWIN_UNIX03
 +  fprintf (stderr, "[address=%08lx pc=%08x]\n",
 +        uc->uc_mcontext->__es.__dar, uc->uc_mcontext->__ss.__srr0);
 +#else
    fprintf (stderr, "[address=%08lx pc=%08x]\n", 
           uc->uc_mcontext->es.dar, uc->uc_mcontext->ss.srr0);
 +#endif
    internal_error ("Segmentation Fault");
    exit (FATAL_EXIT_CODE);
  }
 


Home | Main Index | Thread Index | Old Index