host-darwin.c (darwin_rs6000_extra_siganls): Cast the "void*" result of xmalloc to...
authorRoger Sayle <roger@eyesopen.com>
Sat, 5 Jul 2008 05:03:52 +0000 (05:03 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 5 Jul 2008 05:03:52 +0000 (05:03 +0000)
* config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
the "void*" result of xmalloc to "char*" to fix bootstrap breakage.

From-SVN: r137500

gcc/ChangeLog
gcc/config/rs6000/host-darwin.c

index f5180863e774d86490d4188553adeb9773182802..0b9f0c3a0bbfd1342af037ba4e8a2656aeab8551 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-04  Roger Sayle  <roger@eyesopen.com>
+
+       * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
+       the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
+
 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        PR target/36684
index bb50f0edfd3075d47c6edb1bdeb9b7f1a18fa829..333f4884e1beb6dcf827512d437847e11f5f2c61 100644 (file)
@@ -1,5 +1,6 @@
 /* Darwin/powerpc host-specific hook definitions.
-   Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
+   Free Software Foundation, Inc.
 
    This file is part of GCC.
 
@@ -138,7 +139,7 @@ darwin_rs6000_extra_signals (void)
   struct sigaction sact;
   stack_t sigstk;
 
-  sigstk.ss_sp = xmalloc (SIGSTKSZ);
+  sigstk.ss_sp = (char*)xmalloc (SIGSTKSZ);
   sigstk.ss_size = SIGSTKSZ;
   sigstk.ss_flags = 0;
   if (sigaltstack (&sigstk, NULL) < 0)