--- Additional Comments From tobi at gcc dot gnu dot org 2005-03-13 17:28
---
Closed.
--
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
--- Additional Comments From mgilbert at airborne dot nrl dot navy dot mil
2005-03-04 18:01 ---
I updated all cygwin packages recently as well as gfortran before the hd crash
and ensuing lack of cygwin build on gfortran.org. However, I just got around to
testing the code again. It appe
--- Additional Comments From tobi at gcc dot gnu dot org 2005-02-07 15:12
---
ps it seems that you'll have to use the -fdump-tree-gimple flag for C and look
at the .t08.gimple dump to get something readable.
On i686-pc-linux the C code calls log10, whereas the Fortran code calls
__buitl
--- Additional Comments From tobi at gcc dot gnu dot org 2005-02-07 15:10
---
Can you compile those tests with -fdump-tree-original and look at the
.t02.original dump to determine what functions the C frontend calls, and what
functions the Fortran frontend calls?
--
What
--- Additional Comments From sgk at troutmask dot apl dot washington dot
edu 2005-01-31 04:38 ---
Paul,
Your code on i386-*-freebsd produces
kargl[233] ./log
log with real*4 .. -115.1292 -115.1293
log with real*8 .. -115.129254649702 -115.129254649702
--- Additional Comments From paulthomas2 at wanadoo dot fr 2005-01-25
09:45 ---
I am sorry, I missed this thread completely:
I think that this is a problem with gfortran's log10(real*4).
The following works correctly with the gcc built at the same time as gfortran -
gcc (GCC) 4.0.0 20
--- Additional Comments From tobi at gcc dot gnu dot org 2005-01-17 23:01
---
This will teach me not reading all comments. If it did work two months ago it is
indeed more likely that cygwin is not the point of failure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19443
--- Additional Comments From tobi at gcc dot gnu dot org 2005-01-17 22:58
---
(In reply to comment #2)
> I tried the exact same code with g95 on cygwin, and it worked flawlessly.
> gfortran must have access to the math library because it is able to evaluate
> log
> properly, right? Ho
--- Additional Comments From mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 16:51 ---
My test code works perfectly with the 20041114 cygwin gfortran and earlier
snapshots.
I agree, this could be related to #19363 since the dates of working/non-working
code are similar. I gues
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14
13:51 ---
Then this might be a dup of bug 19363, if both of those C programs worked.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19443
--- Additional Comments From mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:42 ---
That code works properly also. I'm downloading an older snapshot of cygwin
gfortran to see if the bug is in there also.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19443
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14
13:38 ---
Hmm, try this (if might be that log10f is broken):
#include
#include
int main(void)
{
float t = 1.0e-5;
printf("%f\n", 10*log10f(t));
return 0;
}
If this does not link (try -lm), otherwise I don't
--- Additional Comments From mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:34 ---
That c code above worked properly, and running g95 on my test code works fine
also, so I think that pretty much indicates that the issue is with gfortran.
and gfortran works fine when i do lo
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14
13:25 ---
Try this c code:
#include
#include
int main(void)
{
printf("%f\n", 10*log10(1.0e-5));
return 0;
}
It might also be the bug that isfinite does not work on cygwin which is a
different bug.
--
http
--- Additional Comments From mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:20 ---
I tried the exact same code with g95 on cygwin, and it worked flawlessly.
gfortran must have access to the math library because it is able to evaluate log
properly, right? How do you suggest
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-14
13:04 ---
This works for me on ppc-darwin, are you sure that is not a bug in cygwin as
fortran just calls log10f
(which might call log10 if your target does not have the C99 math functions).
--
http://gcc.gnu.or
16 matches
Mail list logo