[Bug boehm-gc/29180] New: boehm-gc/darwin_stop_world.c not 64-bit clean
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Fri Sep 22 13:14:00 GMT 2006
Currently boehm-gc/darwin_stop_world.c generates the compiler warning...
../../../../gcc-4.2-20060920/boehm-gc/darwin_stop_world.c:76: warning: cast to
pointer from integer of different size
The following fix has been discussed on the gcc mailing...
http://gcc.gnu.org/ml/gcc/2006-09/msg00409.html
http://gcc.gnu.org/ml/gcc/2006-09/msg00410.html
http://gcc.gnu.org/ml/gcc/2006-09/msg00413.html
and I am currently testing it. The change does allow
boehm-gc/darwin_stop_world.c to compile without warnings at both -m32 and -m64
on Darwin PPC.
Index: boehm-gc/darwin_stop_world.c
===================================================================
--- boehm-gc/darwin_stop_world.c (revision 117142)
+++ boehm-gc/darwin_stop_world.c (working copy)
@@ -61,7 +61,7 @@
unsigned long savedRTOC;
} StackFrame;
-unsigned long FindTopOfStack(unsigned int stack_start) {
+unsigned long FindTopOfStack(unsigned long stack_start) {
StackFrame *frame;
if (stack_start == 0) {
--
Summary: boehm-gc/darwin_stop_world.c not 64-bit clean
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: boehm-gc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: powerpc-apple-darwin8
GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29180
More information about the Gcc-bugs
mailing list