aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2008-07-05 05:03:52 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2008-07-05 05:03:52 +0000
commit33c7eedf007487d12bc1c48f60815419c9bfb1ed (patch)
treeb92006422df00fe047aac4e97eb2e04c494edbc9 /gcc
parentf851d73681d0ecf84f4e59d7a1b56d7d2c57118e (diff)
downloadgcc-33c7eedf007487d12bc1c48f60815419c9bfb1ed.zip
gcc-33c7eedf007487d12bc1c48f60815419c9bfb1ed.tar.gz
gcc-33c7eedf007487d12bc1c48f60815419c9bfb1ed.tar.bz2
host-darwin.c (darwin_rs6000_extra_siganls): Cast the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
* config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast the "void*" result of xmalloc to "char*" to fix bootstrap breakage. From-SVN: r137500
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/host-darwin.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f518086..0b9f0c3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c
index bb50f0e..333f488 100644
--- a/gcc/config/rs6000/host-darwin.c
+++ b/gcc/config/rs6000/host-darwin.c
@@ -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)