This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Bug in limits.h (Was: glibc 2.1.96)
On Sun, Oct 29, 2000 at 01:42:01AM +0200, Martin v. Loewis wrote:
> > As usual (I must say) the feedback was rare.
>
> Well, maybe people should produce traffic by re-reporting bugs that
> haven't been fixed...
>
> In glibc 2.1.96, compiling
>
> #define _GNU_SOURCE
> #include <limits.h>
>
> int main()
> {
> printf("%d\n",LONG_BIT);
> }
>
> with gcc 2.95.2 on i586-pc-linux-gnu produces a program which prints
> "64"; this is incorrect.
Errm, I had this problem on sparc-linux with 2.1.95, but not 2.1.96. In
fact, this problem has gone away on i386-linux for me too (both using gcc
2.95.2).
[bmc@krikey(7:53pm)-~]%cat temp.c
#define _GNU_SOURCE
#include <limits.h>
int main()
{
printf("%d\n",LONG_BIT);
}
[bmc@krikey(7:53pm)-~]%gcc -o temp temp.c
[bmc@krikey(7:53pm)-~]%./temp
32
[bmc@krikey(7:53pm)-~]%/lib/libc-2.1.96.so | grep 'version'
GNU C Library development release version 2.1.96, by Roland McGrath et al.
Compiled by GNU CC version 2.95.2 20000220 (Debian GNU/Linux).
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'