Mail Archives: cygwin/2004/05/26/07:43:27
Hi all,
GCC 3.3.1 has a problem when printing multiple long double variables using
printf and the -m128bit-long-double compile option on a Pentium-based
machine.
compile the code below with
gcc -m128bit-long-double test.c
and with
gcc test.c
The later will print stuff correctly in both printf statements, whereas
the former will print fine only as long as the printf statement contains a
single long double variable only, but will issue garbage when printing
more than one long double variable in the same printf statement.
cheers
Mathias
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
int
main( int argc, char *argv[] )
{
long double first_long_double_variable = 5.6;
long double second_long_double_variable = 9.3;
printf ("here comes a long double %Lg\n", first_long_double_variable);
printf ("here come TWO long doubles %Lg %Lg\n",
first_long_double_variable, second_long_double_variable);
}
Installation Info as copied from cygcheck.out:
Cygwin DLL version info:
DLL version: 1.5.5
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 94
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Sat Sep 20 16:31:15 EDT 2003
CVS tag: cr-0x9b
Shared id: cygwin1S3
Cygwin Package Information
Package Version
_update-info-dir 00221-1
a2ps 4.13-1
agetty 2.1-1
antiword 0.34-2
ash 20031007-1
aspell 0.50.3-1
aspell-doc 0.50.3-1
aspell-en 0.51.0-1
astyle 1.15.3-3
autoconf 2.57a-1
autoconf-devel 2.57-2
autoconf-stable 2.13-5
automake 1.7.5a-1
automake-devel 1.7.6-2
automake-stable 1.4p5-6
base-files 2.6-1
base-passwd 1.1-1
bash 2.05b-16
bc 1.06-1
binutils 20030901-1
bison 20030307-1
byacc 1.9-1
bzip2 1.0.2-5
c-client 2002e-3
ccache 2.2-1
ccdoc 0.8.39-1
check 0.8.4-1
chkconfig 1.2.24h-1
clear 1.0-1
clisp 2.31-2
cmake 1.8.1-1
cocom 0.995-1
compface 1.4-5
cpio 2.5-3
cron 3.0.1-11
crypt 1.1-1
ctags 5.5-4
cvs 1.11.6-3
cygipc 2.02-1
cygrunsrv 0.96-2
cygutils 1.2.2-1
cygwin 1.5.5-1
cygwin-doc 1.3-6
dejagnu 20021217-2
diffutils 2.8.4-1
docbook-xml42 4.2-1
docbook-xsl 1.62.4-1
doxygen 1.2.18-1
dpkg 1.10.4-2
ed 0.2-1
editrights 1.01-1
ELFIO 1.0.0-1
emacs 21.2-12
emacs-el 21.2-12
emacs-X11 21.2-12
enscript 1.6.3-3
exim 4.24-1
expat 1.95.6-2
expect 20030128-1
figlet 2.2-1
file 4.03-2
fileutils 4.1-2
findutils 4.1.7-4
flex 2.5.4a-3
fltk 1.1.4-1
fontconfig 2.2.0-1
fortune 1.8-2
freetype2 2.1.5-1
gawk 3.1.3-4
gcc 3.3.1-3
gcc-ada 3.3.1-3
gcc-g++ 3.3.1-3
gcc-g77 3.3.1-3
gcc-gpc 3.3.1-3
gcc-java 3.3.1-3
gcc-mingw 20030911-4
gcc-mingw-ada 20031020-1
gcc-mingw-core 20031020-1
gcc-mingw-g++ 20031020-1
gcc-mingw-g77 20031020-1
gcc-mingw-gpc 20031020-1
gcc-mingw-java 20031020-1
gcc-mingw-objc 20031020-1
gcc-objc 3.3.1-3
gdb 20030919-1
gdbm 1.8.3-7
gettext 0.12.1-3
gettext-devel 0.12.1-3
ghostscript 7.05-2
ghostscript-base 7.05-2
ghostscript-x11 7.05-2
gmp 4.1.2-1
gnugo 3.4-1
gnupg 1.2.2-3
gperf 2.7.2-1
grep 2.5-1
groff 1.18.1-2
gsl 1.4-1
guile 1.6.4-12
guile-devel 1.6.4-12
guile-doc 1.6.4-12
gzip 1.3.5-1
indent 2.2.8-1
inetutils 1.3.2-25
initscripts 0.9-1
ioperm 0.4-1
irc 20010101-3
jbigkit 1.5-3
jgraph 8.3-1
jpeg 6b-11
keychain 1.9-1
less 381-1
lftp 2.6.6-1
libaspell15 0.50.3-1
libbz2_0 1.0.2-1
libbz2_1 1.0.2-5
libcharset1 1.9.1-3
libdb3.1 3.1.17-2
libfontconfig-devel 2.2.0-1
libfontconfig1 2.2.0-1
libfreetype2-devel 2.1.5-1
libfreetype26 2.1.5-1
libgdbm 1.8.0-5
libgdbm-devel 1.8.3-7
libgdbm3 1.8.3-3
libgdbm4 1.8.3-7
libgettextpo0 0.12.1-3
libguile12 1.6.4-12
libguile12abi13 1.6.4-2
libiconv 1.9.1-3
libiconv2 1.9.1-3
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.12.1-3
libjpeg62 6b-11
libjpeg6b 6b-8
libkpathsea3 2.0.2-13
libkpathsea3abi13 2.0.2-2
libltdl3 1.5-3
libmcrypt 2.5.7-2
libmcrypt-devel 2.5.7-2
libncurses-devel 5.3-4
libncurses5 5.2-1
libncurses6 5.2-8
libncurses7 5.3-4
libpcre 4.1-1
libpcre0 4.4-2
libpng 1.2.5-4
libpng10 1.0.15-4
libpng10-devel 1.0.15-4
libpng12 1.2.5-4
libpng12-devel 1.2.5-4
libpng2 1.0.12-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-5
libtiff-devel 3.6.0-5
libtiff3 3.6.0-2
libtiff4 3.6.0-5
libtool 1.5a-1
libtool-devel 1.5-3
libtool-stable 1.4.3-2
libungif 4.1.0-2
libxerces-c21 2.1.0-1
libxerces-c22 2.2.0-1
libxerces-c23 2.3.0-4
libxml2 2.5.11-1
libxslt 1.0.33-1
lilypond 2.0.1-1
lilypond-doc 2.0.1-1
login 1.9-7
lynx 2.8.4-7
m4 1.4-1
make 3.80-1
man 1.5j-2
mc 4.6.0-4
mhash 0.8.18-1
mhash-devel 0.8.18-1
mingw-runtime 3.2-1
mingw-zlib 1.1.4-4
mktemp 1.5-3
more 2.11o-1
mt 2.0.1-2
nano 1.2.2-1
nasm 0.98.38-1
ncftp 3.1.4-1
ncurses 5.3-4
ncurses-demo 5.3-4
netcat 1.10-2
opengl 1.1.0-6
openssh 3.7.1p2-1
openssl 0.9.7c-1
openssl-devel 0.9.7c-1
openssl096 0.9.6j-1
par 1.52-1
patch 2.5.8-8
patchutils 0.2.22-2
pcre 4.4-2
pcre-devel 4.4-2
pcre-doc 4.4-2
pdksh 5.2.14-2
perl 5.8.0-5
perl_manpages 5.8.0-5
pine 4.58-1
pinfo 0.6.8-1
pkgconfig 0.15.0-4
popt 1.6.4-4
postgresql 7.3.4-2
procmail 3.22-8
procps 010801-2
proftpd 1.2.9rc3-1
psutils 1.17-1
python 2.3.2-1
rcs 5.7-3
readline 4.3-5
rebase 2.2-3
robots 2.0-3
rpm 4.1-1
rpm-build 4.1-1
rpm-doc 4.1-1
rsync 2.5.6-2
ruby 1.8.0-2
rxvt 2.7.10-3
sed 4.0.7-3
setsid 0.0-3
sh-utils 2.0.15-4
sharutils 4.2.1-3
shutdown 1.4-1
splint 3.1.1-1
ssmtp 2.38.7-4
stunnel 4.04-3
sunrpc 4.0-2
SWI-Prolog 5.2.6-1
swig 1.3.19-1
sysvinit 2.84-4
tar 1.13.25-3
tcltk 20030901-1
tcp_wrappers 7.6-1
tcsh 6.12.00-7
termcap 20021106-2
terminfo 5.3_20030726-1
tetex 2.0.2-13
tetex-base 2.0.2-13
tetex-bin 2.0.2-13
tetex-devel 2.0.2-13
tetex-doc 2.0.2-13
tetex-extra 2.0.2-13
tetex-tiny 2.0.2-13
tetex-x11 2.0.2-13
texinfo 4.2-4
textutils 2.0.21-1
tiff 3.6.0-5
time 1.7-1
tin 1.6.1-1
ttcp 19980512-1
ucl 1.01-1
units 1.77-1
unzip 5.50-5
upx 1.24-1
vim 6.2.098-1
w32api 2.4-1
which 1.5-2
whois 4.6.7-1
wtf 0.0.4-4
xerces-c 2.3.0-4
xerces-c-devel 2.3.0-4
xerces-c-doc 2.3.0-4
xinetd 2.3.9-1
xmlto 0.0.15-1
xpm-nox 4.2.0-4
zip 2.3-5
zlib 1.1.4-4
zsh 4.1.1-1
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -