This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] make stack_start unsigned long, PR29180
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Sep 2006 18:43:24 -0400 (EDT)
- Subject: [patch] make stack_start unsigned long, PR29180
This patch prevents assigning an unsigned int, for the
start_start, to an unsigned long, for the StackFrame
pointer, at...
frame = (StackFrame *)stack_start;
...when compiled on Darwin with -m64. I have verified
that the code builds fine with -m32 and introduces no
regressions in the libjava testsuite. Okay for trunk?
Jack
2006-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/29180
* darwin_stop_world.c: Make stack_start unsigned long.
Index: boehm-gc/darwin_stop_world.c
===================================================================
--- boehm-gc/darwin_stop_world.c (revision 117136)
+++ boehm-gc/darwin_stop_world.c (working copy)
@@ -61,7 +61,7 @@ typedef struct StackFrame {
unsigned long savedRTOC;
} StackFrame;
-unsigned long FindTopOfStack(unsigned int stack_start) {
+unsigned long FindTopOfStack(unsigned long stack_start) {
StackFrame *frame;
if (stack_start == 0) {