* How does builtin_sqrt get used - or not
@ 2009-11-21 21:31 Andrew Hutchinson
2009-11-22 2:15 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Hutchinson @ 2009-11-21 21:31 UTC (permalink / raw)
To: GCC Development
I am tracking test failure with avr target where function sqrtf is
undefined reference at link time.
Here is command line:
/media/verbatim/gcchead/obj-dir/gcc/xgcc
-B/media/verbatim/gcchead/obj-dir/gcc/
/media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr41963.c -O2
-ffast-math -DSTACK_SIZE=2048 -DNO_TRAMPOLINES -DSIGNAL_SUPPRESS
-mmcu=atmega128 /home/andy/winavrfiles/avrtest/dejagnuboards/exit.c
-Wl,-u,vfprintf -lprintf_flt
-Wl,-Tbss=0x802000,--defsym=__heap_end=0x80ffff -lm -o pr41963.exe
I am lead to believe that gcc might use builtin_sqrtf rather than
sqrtf(). I am successfully using fabsf() - with no link errors.
Is their any target configuration needed for builtin_sqrtf that I should
know about ?
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How does builtin_sqrt get used - or not
2009-11-21 21:31 How does builtin_sqrt get used - or not Andrew Hutchinson
@ 2009-11-22 2:15 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2009-11-22 2:15 UTC (permalink / raw)
To: Andrew Hutchinson; +Cc: GCC Development
Andrew Hutchinson <andrewhutchinson@cox.net> writes:
> I am tracking test failure with avr target where function sqrtf is
> undefined reference at link time.
>
> Here is command line:
>
> /media/verbatim/gcchead/obj-dir/gcc/xgcc
> -B/media/verbatim/gcchead/obj-dir/gcc/
> /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr41963.c -O2
> -ffast-math -DSTACK_SIZE=2048 -DNO_TRAMPOLINES -DSIGNAL_SUPPRESS
> -mmcu=atmega128 /home/andy/winavrfiles/avrtest/dejagnuboards/exit.c
> -Wl,-u,vfprintf -lprintf_flt
> -Wl,-Tbss=0x802000,--defsym=__heap_end=0x80ffff -lm -o pr41963.exe
>
> I am lead to believe that gcc might use builtin_sqrtf rather than
> sqrtf(). I am successfully using fabsf() - with no link errors.
>
> Is their any target configuration needed for builtin_sqrtf that I
> should know about ?
If your target does not define a sqrtsf2 insn, then using
builtin_sqrtf won't make any difference; gcc will still call the
libc's sqrtf function.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-22 2:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-21 21:31 How does builtin_sqrt get used - or not Andrew Hutchinson
2009-11-22 2:15 ` Ian Lance Taylor
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).