minor changes to host-darwin.c.

Geoffrey Keating gkeating@apple.com
Wed Jul 23 19:10:00 GMT 2003


This just ANSIfies config/rs6000/host-darwin.c and updates a comment.

Tested with 'make quickstrap' on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

====================
2003-07-23  Geoffrey Keating  <geoffk@apple.com>

	* config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
	prototype.

*** host-darwin.c.~1.5.~	Fri May 16 21:00:47 2003
--- host-darwin.c	Wed Jul 23 12:07:33 2003
***************
*** 28,39 ****
  #include "toplev.h"
  #include "diagnostic.h"
  
! static void segv_crash_handler PARAMS ((int));
! static void segv_handler PARAMS ((int, siginfo_t *, void *));
! static void darwin_rs6000_extra_signals PARAMS ((void));
! 
! /* No prototype for this, filed as Radar 3150910.  */
! extern int sigaltstack(const stack_t *, stack_t *);
  
  #undef HOST_HOOKS_EXTRA_SIGNALS
  #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals
--- 28,40 ----
  #include "toplev.h"
  #include "diagnostic.h"
  
! 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
***************
*** 45,61 ****
     the previous bottom of the stack.  */
  
  static void
! segv_crash_handler (sig)
!      int sig ATTRIBUTE_UNUSED;
  {
    internal_error ("Segmentation Fault (code)");
  }
  
  static void
! segv_handler (sig, sip, scp)
!      int sig ATTRIBUTE_UNUSED;
!      siginfo_t *sip ATTRIBUTE_UNUSED;
!      void *scp;
  {
    ucontext_t *uc = (ucontext_t *)scp;
    unsigned faulting_insn;
--- 46,60 ----
     the previous bottom of the stack.  */
  
  static void
! segv_crash_handler (int sig ATTRIBUTE_UNUSED)
  {
    internal_error ("Segmentation Fault (code)");
  }
  
  static void
! segv_handler (int sig ATTRIBUTE_UNUSED,
! 	      siginfo_t *sip ATTRIBUTE_UNUSED,
! 	      void *scp)
  {
    ucontext_t *uc = (ucontext_t *)scp;
    unsigned faulting_insn;
***************
*** 119,125 ****
  }
  
  static void
! darwin_rs6000_extra_signals ()
  {
    struct sigaction sact;
    stack_t sigstk;
--- 118,124 ----
  }
  
  static void
! darwin_rs6000_extra_signals (void)
  {
    struct sigaction sact;
    stack_t sigstk;
====================



More information about the Gcc-patches mailing list