Shane Harrelson wrote:
Try
make CFLAGS="-g -O2 -fno-fast-math"
and see if that fails like your test case 2. I *think* this will turn on
the -O2 optimizations and disable fast-math.
Other than that, I don't have any other suggestions.
Thanks for the suggestion. The results are below. In my particular
case, I don't believe the issue is -ffast-math.
Tom
$ make CFLAGS="-g -O2 -fno-fast-math" clean sqlite3 ; ./sqlite3 foo
"select 1.0 / 3.0; "
rm -f sqlite3 sqlite3
test -z "libsqlite3.la" || rm -f libsqlite3.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
if gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\"
-DPACKAGE_VERSION=\"3.5.9\" -DPACKAGE_STRING=\"sqlite\ 3.5.9\"
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.5.9\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -DSQLITE_THREADSAFE=1 -g
-O2 -fno-fast-math -MT shell.o -MD -MP -MF ".deps/shell.Tpo" -c -o
shell.o shell.c; \
then mv -f ".deps/shell.Tpo" ".deps/shell.Po"; else rm -f
".deps/shell.Tpo"; exit 1; fi
if /bin/sh ./libtool --tag=CC --mode=compile gcc
-DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\"
-DPACKAGE_VERSION=\"3.5.9\" -DPACKAGE_STRING=\"sqlite\ 3.5.9\"
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.5.9\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -DSQLITE_THREADSAFE=1 -g
-O2 -fno-fast-math -MT sqlite3.lo -MD -MP -MF ".deps/sqlite3.Tpo" -c -o
sqlite3.lo sqlite3.c; \
then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f
".deps/sqlite3.Tpo"; exit 1; fi
gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\"
-DPACKAGE_VERSION=\"3.5.9\" "-DPACKAGE_STRING=\"sqlite 3.5.9\""
-DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE=\"sqlite\"
-DVERSION=\"3.5.9\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_GMTIME_R=1 -DHAVE_READLINE=1 -I. -I. -DSQLITE_THREADSAFE=1 -g -O2
-fno-fast-math -MT sqlite3.lo -MD -MP -MF .deps/sqlite3.Tpo -c sqlite3.c
-o sqlite3.o
/bin/sh ./libtool --tag=CC --mode=link gcc -DSQLITE_THREADSAFE=1 -g -O2
-fno-fast-math -o libsqlite3.la -rpath /usr/local/lib -no-undefined
-version-info 8:6:8 sqlite3.lo -ldl -lpthread
mkdir .libs
ar cru .libs/libsqlite3.a sqlite3.o
ranlib .libs/libsqlite3.a
creating libsqlite3.la
(cd .libs && rm -f libsqlite3.la && ln -s ../libsqlite3.la libsqlite3.la)
/bin/sh ./libtool --tag=CC --mode=link gcc -DSQLITE_THREADSAFE=1 -g -O2
-fno-fast-math -o sqlite3 shell.o ./libsqlite3.la -lreadline
-lcurses -ldl -lpthread
gcc -DSQLITE_THREADSAFE=1 -g -O2 -fno-fast-math -o sqlite3 shell.o
./.libs/libsqlite3.a -lreadline -lcurses -ldl -lpthread
$ ./sqlite3 foo "select 1.0 / 3.0 ; "
$
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]