Re: math error reporting

2011-11-06 Thread Bruno Haible
Paul Eggert wrote: > > How does that sound? (It's a lot of work, I know.) > > It sounds nice. You're right that it's a lot of work, though. > Is it worth the effort? (Depends on the problem you want solved > but I don't know what that is) The problem is that the way to test whether a math f

Re: [PATCH] stdalign: port better to MSVC and to Sun C 5.11

2011-11-06 Thread Bruno Haible
Paul Eggert wrote: > ... please push. > > I didn't get a URL yet, but did get a Sun review ID that I > just now added to the documentation. Thanks. I pushed this: --- a/tests/test-stdalign.c +++ b/tests/test-stdalign.c @@ -80,6 +80,11 @@ CHECK_STATIC (struct4); int main () { +#if defined __SU

ansi-c++-opt fix

2011-11-06 Thread Bruno Haible
When using a gnulib testdir built with --with-c++-tests on HP-UX 11 aCC or OSF/1 cxx, I get errors from 'depcomp': checking whether the C++ compiler (aCC -O ) works... yes checking whether the C++ compiler supports namespaces... no checking dependency style of :... none ... source='test

Re: math error reporting

2011-11-06 Thread Paul Eggert
On 11/06/11 12:36, Bruno Haible wrote: > How does that sound? (It's a lot of work, I know.) It sounds nice. You're right that it's a lot of work, though. Is it worth the effort? (Depends on the problem you want solved but I don't know what that is) Will the replacement address the document

Re: [PATCH] stdalign: port better to MSVC and to Sun C 5.11

2011-11-06 Thread Paul Eggert
On 11/06/11 12:55, Bruno Haible wrote: > Here's a proposed patch. By the way, did you receive an URL we can include > in the comments here, meanwhile? Sure, thanks, that patch looks fine; please push. I didn't get a URL yet, but did get a Sun review ID that I just now added to the documentation.

Re: [PATCH] stdalign: port better to MSVC and to Sun C 5.11

2011-11-06 Thread Bruno Haible
Hi Paul, > > 2) On Solaris 10 (both SPARC and i386) with cc, the test fails: > > > > test-stdalign.c:81: assertion failed > > FAIL: test-stdalign Now it's at line 83. > Yes, I can reproduce this, and it's already documented in > stdalign.texi. This is a bug in Sun C 5.11, which can occur when

math error reporting

2011-11-06 Thread Bruno Haible
Hi, Considering how gnulib-implemented functions should do their error reporting, I ran a test program to see how the various systems implement math errors. #include #include #include #ifndef NO_FENV #include #endif

copysignl on HP-UX 11

2011-11-06 Thread Bruno Haible
On HP-UX 11.00..11.31, with cc but not with gcc, the copysignl test fails: test-copysignl.c:96: assertion failed FAIL: test-copysignl The reason is that the compiler implements the unary minus operator incorrectly (!). Here is a workaround, limited to copysignl(), since we cannot fix the prob

Re: Add "java_quoting_style" to quotearg

2011-11-06 Thread Bruno Haible
Tim Landscheidt wrote: > I don't know what the result > of `quotearg ("äöü")' should look like and what it should > depend on. It depends on the output destination of the quoted string. If it is for output on stderr, like in bison/src/parse-gram.y:193 %printer { fputs (quotearg_style (c_quoting

Add "java_quoting_style" to quotearg

2011-11-06 Thread Tim Landscheidt
Hi, I'm looking at adding a "java_quoting_style" to quotearg for use in Bison. After consulting http://java.sun.com/docs/books/jls/third_edition/html/lexical.html>, I've come up with the attached patch which isn't complete yet. Unfortunately, my knowledge of C's (gnulib's?) handling of locales