This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dtoa.c fails to compile for sh-elf -m2e (Was: Re: strtod (and atof) on hex numbers)


amylaar@spamcop.net wrote:
Quoting Jeff Johnston <jjohnstn@redhat.com>:


Joern Rennecke wrote:

You change to mprec.h broke dtoa.c compilation for sh2e:


Please try the attached patch and let me know if it sovles the problem.


Yes, it allows dtoa.c to compile.  However, the build now fails a bit
later on strtod:


Ok, I need to look into this a bit deeper and test with a DOUBLE_IS_32BITS system.


-- Jeff J.

/swbuild/nightly/2006-06-24/sh-elf-mprec/./gcc/xgcc
-B/swbuild/nightly/2006-06-24/sh-elf-mprec/./gcc/ -nostdinc
-B/swbuild/nightly/2006-06-24/sh-elf-mprec/sh-elf/newlib/ -isystem
/swbuild/nightly/2006-06-24/sh-elf-mprec/sh-elf/newlib/targ-include -isystem
/swbuild/nightly/2006-06-24/srcw/newlib/libc/include -B/usr/local/sh-elf/bin/
-B/usr/local/sh-elf/lib/ -isystem /usr/local/sh-elf/include -isystem
/usr/local/sh-elf/sys-include -L/swbuild/nightly/2006-06-24/sh-elf-mprec/./ld
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.14.0\" -DPACKAGE_STRING=\"newlib\ 1.14.0\"
-DPACKAGE_BUGREPORT=\"\"  -I. -I../../../../../../srcw/newlib/libc/stdlib -O2
-fno-builtin      -O2 -g -O2   -m2e -c -o lib_a-strtod.o `test -f 'strtod.c' ||
echo '../../../../../../srcw/newlib/libc/stdlib/'`strtod.c
../../../../../../srcw/newlib/libc/stdlib/strtod.c: In function ïULtodï:
../../../../../../srcw/newlib/libc/stdlib/strtod.c:154: error: ï_1ï undeclared
(first use in this function)
../../../../../../srcw/newlib/libc/stdlib/strtod.c:154: error: (Each undeclared
identifier is reported only once
../../../../../../srcw/newlib/libc/stdlib/strtod.c:154: error: for each function
it appears in.)
../../../../../../srcw/newlib/libc/stdlib/strtod.c:155: error: ï_0ï undeclared
(first use in this function)
../../../../../../srcw/newlib/libc/stdlib/strtod.c: In function ï_strtod_rï:
../../../../../../srcw/newlib/libc/stdlib/strtod.c:439: error: ïFlt_Roundsï
undeclared (first use in this function)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]