This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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) {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]