source: trunk/dports/cross/avr-gcc/files/gcc-config-rs6000-host-darwin.c.diff @ 33409

Last change on this file since 33409 was 33409, checked in by pguyot@…, 12 years ago

cross/avr-gcc: fix compilation issue on 10.5 (#13191)

File size: 1.2 KB
  • gcc/config/rs6000/host-darwin.c

     
    3535
    3636/* This doesn't have a prototype in signal.h in 10.2.x and earlier,
    3737   fixed in later releases.  */
    38 extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
     38/*extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);*/
    3939
    4040#undef HOST_HOOKS_EXTRA_SIGNALS
    4141#define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals
     
    6464     which case the next line will segfault _again_.  Handle this case.  */
    6565  signal (SIGSEGV, segv_crash_handler);
    6666
    67   faulting_insn = *(unsigned *)uc->uc_mcontext->ss.srr0;
     67  faulting_insn = *(unsigned *)uc->uc_mcontext->__ss.__srr0;
    6868
    6969  /* Note that this only has to work for GCC, so we don't have to deal
    7070     with all the possible cases (GCC has no AltiVec code, for
     
    113113    }
    114114
    115115  fprintf (stderr, "[address=%08lx pc=%08x]\n",
    116            uc->uc_mcontext->es.dar, uc->uc_mcontext->ss.srr0);
     116           uc->uc_mcontext->__es.__dar, uc->uc_mcontext->__ss.__srr0);
    117117  internal_error ("Segmentation Fault");
    118118  exit (FATAL_EXIT_CODE);
    119119}
Note: See TracBrowser for help on using the repository browser.