|
From: Florian K. <br...@ac...> - 2011-03-24 19:55:40
Attachments:
drd-patch
|
Hi Bart, I'm using GCC 4.2.1 and some of the DRD test cases that are written in C++ fail during make check. The reason is that g++ 4.2.1 does not support __sync_add_and_fetch and friends (the C compiler does). So we need to enhance the configury and test for the C++ compiler as well. Attached is a patch, that fixes the problem. Cheers, Florian |
|
From: Bart V. A. <bva...@ac...> - 2011-03-24 20:30:22
|
On Thu, Mar 24, 2011 at 8:55 PM, Florian Krohm <br...@ac...> wrote: > > I'm using GCC 4.2.1 and some of the DRD test cases that are written in C++ > fail during make check. The reason is that g++ 4.2.1 does not support > __sync_add_and_fetch and friends (the C compiler does). So we need to enhance > the configury and test for the C++ compiler as well. Attached is a patch, that > fixes the problem. Thanks for the patch. But I have to admit that I'm surprised to see such behavior - as far as I remember on x86 and on PPC gcc 4.2.x and g++ 4.2.x are consistent with regard to support for built-in functions for atomic memory access. Bart. |
|
From: Florian K. <br...@ac...> - 2011-03-24 20:44:26
|
On 03/24/2011 04:29 PM, Bart Van Assche wrote: > On Thu, Mar 24, 2011 at 8:55 PM, Florian Krohm <br...@ac...> wrote: > > Thanks for the patch. But I have to admit that I'm surprised to see > such behavior - as far as I remember on x86 and on PPC gcc 4.2.x and > g++ 4.2.x are consistent with regard to support for built-in functions > for atomic memory access. > Sorry, my mistake. I was in fact using GCC 3.4.6. Florian |