public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/29180]  New: boehm-gc/darwin_stop_world.c not 64-bit clean
@ 2006-09-22 13:14 howarth at nitro dot med dot uc dot edu
  2006-09-22 15:42 ` [Bug boehm-gc/29180] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-22 13:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-26 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-22 13:14 [Bug boehm-gc/29180] New: boehm-gc/darwin_stop_world.c not 64-bit clean howarth at nitro dot med dot uc dot edu
2006-09-22 15:42 ` [Bug boehm-gc/29180] " pinskia at gcc dot gnu dot org
2006-09-22 16:11 ` howarth at nitro dot med dot uc dot edu
2006-09-26 17:21 ` tromey at gcc dot gnu dot org
2006-09-26 17:23 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).