__builtin___clear_cache

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

__builtin___clear_cache

Kazu Yamamoto (山本和彦)
Hi,

5bab1a57f572e29dfdffd6d1ce8e53a2772b18fd introduced
__builtin___clear_cache. I think this is GCC specific.
So, Storage.c cannot be compiled with clang:

----
rts/sm/Storage.c:1294:3:
     error: use of unknown builtin '__builtin___clear_cache' [-Wimplicit-function-declaration]
      __builtin___clear_cache(begin, end);
      ^
1 error generated.
----

--Kazu

Reply | Threaded
Open this post in threaded view
|

__builtin___clear_cache

Herbert Valerio Riedel
On 2013-11-29 at 03:37:43 +0100, Kazu Yamamoto (????) wrote:

> 5bab1a57f572e29dfdffd6d1ce8e53a2772b18fd introduced
> __builtin___clear_cache. I think this is GCC specific.
> So, Storage.c cannot be compiled with clang:
>
> ----
> rts/sm/Storage.c:1294:3:
>      error: use of unknown builtin '__builtin___clear_cache' [-Wimplicit-function-declaration]
>       __builtin___clear_cache(begin, end);
>       ^
> 1 error generated.
> ----

Fyi, the following posting seems related:

 http://lists.nongnu.org/archive/html/libunwind-devel/2012-08/msg00057.html


Reply | Threaded
Open this post in threaded view
|

__builtin___clear_cache

Kazu Yamamoto (山本和彦)
Hi,

I was discussed this with Austin in private messages. He understand
what's the source of this problem and will fix it.

--Kazu

> On 2013-11-29 at 03:37:43 +0100, Kazu Yamamoto (????) wrote:
>> 5bab1a57f572e29dfdffd6d1ce8e53a2772b18fd introduced
>> __builtin___clear_cache. I think this is GCC specific.
>> So, Storage.c cannot be compiled with clang:
>>
>> ----
>> rts/sm/Storage.c:1294:3:
>>      error: use of unknown builtin '__builtin___clear_cache' [-Wimplicit-function-declaration]
>>       __builtin___clear_cache(begin, end);
>>       ^
>> 1 error generated.
>> ----
>
> Fyi, the following posting seems related:
>
>  http://lists.nongnu.org/archive/html/libunwind-devel/2012-08/msg00057.html
>

Reply | Threaded
Open this post in threaded view
|

__builtin___clear_cache

Kazu Yamamoto (山本和彦)
Hi,

I verified that the recent change solves this problem on Mac.
Thank you, Austin.

--Kazu

> I was discussed this with Austin in private messages. He understand
> what's the source of this problem and will fix it.
>
> --Kazu
>
>> On 2013-11-29 at 03:37:43 +0100, Kazu Yamamoto (????) wrote:
>>> 5bab1a57f572e29dfdffd6d1ce8e53a2772b18fd introduced
>>> __builtin___clear_cache. I think this is GCC specific.
>>> So, Storage.c cannot be compiled with clang:
>>>
>>> ----
>>> rts/sm/Storage.c:1294:3:
>>>      error: use of unknown builtin '__builtin___clear_cache' [-Wimplicit-function-declaration]
>>>       __builtin___clear_cache(begin, end);
>>>       ^
>>> 1 error generated.
>>> ----
>>
>> Fyi, the following posting seems related:
>>
>>  http://lists.nongnu.org/archive/html/libunwind-devel/2012-08/msg00057.html
>>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs