Re: stdint_.h vs intmax_t & uintmax_t

2005-11-15 Thread Mark D. Baushke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Eggert <[EMAIL PROTECTED]> writes: > "Mark D. Baushke" <[EMAIL PROTECTED]> writes: > > > There is one remaining interaction with stdint_.h and config.h > > which arises from m4/size_max.m4 > > > > % grep SIZE_MAX config.h > > config.h:#define S

c99+ pragma is ignored by gcc -std=gnu99

2005-11-15 Thread Jim Meyering
Hi Paul, In compiling coreutils with -std=gnu99, I see this new warning: xstrtod.c:33: warning: ignoring #pragma STDC FENV_ACCESS Why was this code needed? /* Tell the compiler that non-default rounding modes are used. */ #if 199901 <= __STDC_VERSION__ #pragma STDC FENV_ACCESS ON #e

Re: c99+ pragma is ignored by gcc -std=gnu99

2005-11-15 Thread Paul Eggert
Jim Meyering <[EMAIL PROTECTED]> writes: > In compiling coreutils with -std=gnu99, I see this new warning: > > xstrtod.c:33: warning: ignoring #pragma STDC FENV_ACCESS > > Why was this code needed? The C standard says that all code that runs when the rounding mode is altered must be compiled wi

Re: c99+ pragma is ignored by gcc -std=gnu99

2005-11-15 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: > However, for now the simplest thing to do is to remove the pragma so I > installed the following patch, in both gnulib and coreutils. > > 2005-11-15 Paul Eggert <[EMAIL PROTECTED]> > > * xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as >

regex module breaks distcheck

2005-11-15 Thread Sergey Poznyakoff
Hello, The file lib/regex.c includes several files, which are never added to EXTRA_DIST. I propose the following patch: Index: modules/regex === RCS file: /cvsroot/gnulib/gnulib/modules/regex,v retrieving revision 1.12 diff -p -u -r1

Re: stdint_.h vs intmax_t & uintmax_t

2005-11-15 Thread Paul Eggert
"Mark D. Baushke" <[EMAIL PROTECTED]> writes: > I suspect it would be more portable to use this: > > #ifndef SIZE_MAX > # define SIZE_MAX ((size_t)-1) > #endif Yes, that's true. There are several other deficiencies like that in stdint_.h. I wonder why stdint_.h diverges so much from

Re: regex module breaks distcheck

2005-11-15 Thread Paul Eggert
"Sergey Poznyakoff" <[EMAIL PROTECTED]> writes: > Makefile.am: > +EXTRA_DIST += regex_internal.c regex_internal.h regexec.c regcomp.c That shouldn't be needed, since m4/regex.m4's gl_REGEX macro mentions those files with AC_LIBSOURCES. "make distcheck" works for me, with CVS tar. What problems