[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gmp now working, but number.c:147 isinf declared implicitly.
From: |
Hugh Sasse |
Subject: |
Re: Gmp now working, but number.c:147 isinf declared implicitly. |
Date: |
Mon, 22 Jan 2007 11:53:05 +0000 (WET) |
On Mon, 22 Jan 2007, Kevin Ryde wrote:
> Hugh Sasse <address@hidden> writes:
> >
> >> You might be able to stick something in to save the conftest.c used.
> >
> > Possibly. I'm not familiar enough with autoconf to be confident about
> > that.
>
> Oh, what I meant was if you edit the generated configure to do a cp of
> conftest.c at the right spot. The autoconf side is pretty wild, but
> it comes out just as extremely ugly shell script ...
OK, well, I'll look at this bit first:
>
> > bash-2.05$ gcc -o isinf isinf.c
>
> I think you'll have to see what actually comes out. Add "-S" to see
bash-2.05$ gcc -S -o isinf isinf.c
bash-2.05$ cat isinf.c
#include <stdio.h>
#include <math.h>
int main(void);
int main (void) {
printf ("isinf(0.0) gives %d\n",isinf(0.0));
printf ("(isinf(0.0) != 0) gives %d\n",(isinf(0.0) != 0));
return (0);
}
bash-2.05$ cat isinf
.file "isinf.c"
.section ".rodata"
.align 8
.LLC0:
.asciz "isinf(0.0) gives %d\n"
.align 8
.LLC1:
.asciz "(isinf(0.0) != 0) gives %d\n"
.section ".text"
.align 4
.global main
.type main, #function
.proc 04
main:
save %sp, -112, %sp
sethi %hi(.LLC0), %g1
or %g1, %lo(.LLC0), %o0
mov 0, %o1
call printf, 0
nop
sethi %hi(.LLC1), %g1
or %g1, %lo(.LLC1), %o0
mov 0, %o1
call printf, 0
nop
mov 0, %g1
mov %g1, %i0
restore
jmp %o7+8
nop
.size main, .-main
.ident "GCC: (GNU) 4.1.1"
bash-2.05$
I've never done sparc assembler, so I don't understand this, but
there seems to be no call to anything that could be isinf...
> the asm code, or add "-c" and look with nm at the .o file, to see if
bash-2.05$ gcc -c -o isinf isinf.c
bash-2.05$ nm --synthetic --special-syms isinf
00000000 T main
U printf
bash-2.05$
> there's an actual reference to an isinf. Perhaps gcc has optimized it
> out.
>
> Or if it looks ok in the test program then do the same with numbers.c
I don't think it looks OK....
> to see what comes out there. (The .o created, or adding -S to the gcc
> invocation as printed by libtool.)
>
Thank you,
Hugh
- Re: Gmp now working, but number.c:147 isinf declared implicitly., (continued)
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/12
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/12
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/15
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/15
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/15
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/16
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/16
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/18
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/19
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/21
- Re: Gmp now working, but number.c:147 isinf declared implicitly.,
Hugh Sasse <=
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/22
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/23
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/19
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/21
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/21
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/22
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/22
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/23
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Kevin Ryde, 2007/01/24
- Re: Gmp now working, but number.c:147 isinf declared implicitly., Hugh Sasse, 2007/01/25