Re: [PATCH v2] [PR/target 100316] Allow constant address for __builtin___clear_cache.

2021-10-07 Thread Richard Biener via Gcc-patches
On Thu, Oct 7, 2021 at 6:45 PM Kito Cheng wrote: > > __builtin___clear_cache was able to accept constant address for the > argument, but it seems no longer accept recently, and it even not > accept constant address which is hold in variable when optimization is > enable: > > ``` > void foo3(){ >

[PATCH v2] [PR/target 100316] Allow constant address for __builtin___clear_cache.

2021-10-07 Thread Kito Cheng
__builtin___clear_cache was able to accept constant address for the argument, but it seems no longer accept recently, and it even not accept constant address which is hold in variable when optimization is enable: ``` void foo3(){ void *yy = (void*)0x1000; __builtin___clear_cache(yy, yy); } ```