------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-06-12 
10:51 -------
Since scalbnis only used in set_exponent, we could provide a fallback
implementation (I'm not a FP expert, but I'm not sure the libjava implementation
is very portable). What about the naïve implementation:

double scalbn (double x, int n) { return x * pow(FLT_RADIX,n); }

Is FLT_RADIX available on Tru64 UNIX V4.0F and IRIX? That would at least allow
gfortran to build, even if we could enhance this code afterwards.

The fix is: add a check for scalbn in the configure.ac, add the fallback
function to c99_functions.c and the prototype to c99_protos.h. I can write that
and submit the patch for review if someone can test it on Tru64 UNIX and IRIX.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-12 10:51:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21950

Reply via email to