improve clang support (21)

2020-08-10 Thread Bruno Haible
clang supports the various function attributes from GCC 4.2.x, plus also attribute __artificial__ (in clang >= 7). With this patch, the attributes are enabled also on Windows, where clang does not define __GNUC__. The patch uses __has_attribute in lib/cdefs.h, so that the code will refrain from u

Re: c-ldtoastr test failure

2020-08-10 Thread Bruno Haible
Hi Marc, > thanks for catching that. The proposed change is perfect. OK, pushed it. > Actually, I > had made that fix in my local code as well so I am wondering why it > didn't make itself into the patch I sent you. What I committed in your name on 2020-06-25 was what you had sent to the list o

Re: c-ldtoastr test failure

2020-08-10 Thread Marc Nieper-Wißkirchen
Hi Bruno, thanks for catching that. The proposed change is perfect. Actually, I had made that fix in my local code as well so I am wondering why it didn't make itself into the patch I sent you. Best, Marc Am Mo., 10. Aug. 2020 um 08:55 Uhr schrieb Bruno Haible : > > Hi Marc, > > On a Linux/x86_

Re: improve clang support (20)

2020-08-10 Thread Gisle Vanem
Bruno Haible wrote: When building a testdir of all of gnulib with clang 9 on a glibc system, I see these compilation errors: Good work on the clang support, but it looks like you have not tried clang-cl with the Microsoft 'Windows-Kit' headers. Microsoft added support for 'clang/clang-cl' in