swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic Graph works (all the way) on Redhat 5.1


From: Marcus G. Daniels
Subject: Re: Dynamic Graph works (all the way) on Redhat 5.1
Date: 16 Jul 1998 18:28:16 -0700

ST> The need for '-fno-inline' seems to be a RedHat-5.1 'feature'.

It was a bug in GCC. 

Wed Jul  8 14:42:38 1998  H.J. Lu  (address@hidden)

        * cse.c (count_reg_usage): Count registers used by clobbered
        memory.

--- ../../../import/egcs/gcc/cse.c      Sun Nov 16 22:50:55 1997
+++ ./cse.c     Wed Jul  8 14:27:33 1998
@@ -8576,7 +8576,11 @@ count_reg_usage (x, counts, dest, incr)
     case CONST_DOUBLE:
     case SYMBOL_REF:
     case LABEL_REF:
+      return;
+
     case CLOBBER:
+      if (GET_CODE (XEXP (x, 0)) == MEM)
+        count_reg_usage (XEXP (XEXP (x, 0), 0), counts, NULL_RTX, incr);
       return;
 
     case SET:

ST> Case closed?

Case closed.

I'll add an autoconf test to check for this problem.  Below is the test;
if it coredumps, your compiler has got the bug.

inline void
fuzz (double __y)
{
  long long int __p = __y;

  if (__p == 0)
    return;
  if (__p < 0)
    __p = 0;
}

int
main ()
{
  double nodedy[2];

  fuzz (0.5);
  
  exit (0);
}



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]