From: Hugh Sasse <hgs@dmu.ac.uk>
Cc: guile-user@gnu.org
Subject: Re: Gmp now working, but number.c:147 isinf declared implicitly.
Date: Mon, 22 Jan 2007 11:53:05 +0000 (WET) [thread overview]
Message-ID: <Pine.GSO.4.64.0701221139470.9985@brains.eng.cse.dmu.ac.uk> (raw)
In-Reply-To: <87y7nw2c5m.fsf@zip.com.au>
On Mon, 22 Jan 2007, Kevin Ryde wrote:
> Hugh Sasse <hgs@dmu.ac.uk> 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
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2007-01-22 11:53 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 14:52 Gmp now working, but number.c:147 isinf declared implicitly Hugh Sasse
2007-01-12 17:37 ` Hugh Sasse
2007-01-12 22:59 ` Kevin Ryde
2007-01-15 9:46 ` Hugh Sasse
2007-01-15 11:58 ` Hugh Sasse
2007-01-15 20:31 ` Kevin Ryde
2007-01-16 10:21 ` Hugh Sasse
2007-01-16 14:58 ` Hugh Sasse
2007-01-19 0:37 ` Kevin Ryde
2007-01-19 10:02 ` Hugh Sasse
2007-01-21 23:27 ` Kevin Ryde
2007-01-22 11:53 ` Hugh Sasse [this message]
2007-01-22 21:11 ` Kevin Ryde
2007-01-23 10:27 ` Hugh Sasse
2007-01-19 15:43 ` Hugh Sasse
2007-01-21 21:08 ` Kevin Ryde
2007-01-21 23:22 ` Kevin Ryde
2007-01-22 12:08 ` Hugh Sasse
2007-01-22 21:05 ` Kevin Ryde
2007-01-23 11:01 ` Hugh Sasse
2007-01-24 21:23 ` Kevin Ryde
2007-01-25 10:27 ` Hugh Sasse
2007-01-26 22:24 ` Kevin Ryde
2007-01-18 0:43 ` Kevin Ryde
2007-01-18 9:57 ` Hugh Sasse
2007-01-18 12:21 ` Hugh Sasse
2007-01-18 10:43 ` Ludovic Courtès
2007-01-15 20:27 ` Kevin Ryde
2007-01-16 10:11 ` Hugh Sasse
2007-01-18 0:38 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.64.0701221139470.9985@brains.eng.cse.dmu.ac.uk \
--to=hgs@dmu.ac.uk \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).