From: <dan...@us...> - 2009-04-29 06:43:05
|
Revision: 1261 http://cegcc.svn.sourceforge.net/cegcc/?rev=1261&view=rev Author: dannybackx Date: 2009-04-29 06:43:04 +0000 (Wed, 29 Apr 2009) Log Message: ----------- Changes for MacOS X 10.5 by Ismail Modified Paths: -------------- trunk/cegcc/src/gcc/gcc/ChangeLog.ce trunk/cegcc/src/gcc/gcc/config/rs6000/host-darwin.c Modified: trunk/cegcc/src/gcc/gcc/ChangeLog.ce =================================================================== --- trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-04-29 06:37:37 UTC (rev 1260) +++ trunk/cegcc/src/gcc/gcc/ChangeLog.ce 2009-04-29 06:43:04 UTC (rev 1261) @@ -1,3 +1,7 @@ +2009-04-29 Ismail Khatib <ik...@im...> + + * config/rs6000/host-darwin.c : small changes for MacOS X 10.5. + 2009-04-14 Danny Backx <dan...@us...> * config.gcc : Add new file gcc/config/i386/mingw32ce.h . Modified: trunk/cegcc/src/gcc/gcc/config/rs6000/host-darwin.c =================================================================== --- trunk/cegcc/src/gcc/gcc/config/rs6000/host-darwin.c 2009-04-29 06:37:37 UTC (rev 1260) +++ trunk/cegcc/src/gcc/gcc/config/rs6000/host-darwin.c 2009-04-29 06:43:04 UTC (rev 1261) @@ -33,9 +33,11 @@ static void segv_handler (int, siginfo_t *, void *); static void darwin_rs6000_extra_signals (void); +#ifndef __DARWIN_UNIX03 /* 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 *); +#endif #undef HOST_HOOKS_EXTRA_SIGNALS #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals @@ -68,7 +70,11 @@ sigaddset (&sigset, SIGSEGV); sigprocmask (SIG_UNBLOCK, &sigset, NULL); +#ifdef __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 +122,13 @@ exit (FATAL_EXIT_CODE); } +#ifdef __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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |