https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112388

            Bug ID: 112388
           Summary: clear_cache vs cores with different cache line sizes
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

This is the equivalent issue filed on LLVM side:
https://github.com/llvm/llvm-project/issues/70791

To get thoughts on ways of fixing this.

But basically sometimes different cores have different cache line sizes to
invalide the cache. And the sizes might change between runs of the function.

The only way I think we can fix this for Linux would to have a system call. for
other OS, we just need to suffer unless they provide a new method if the
different cache line sizes could appear.

Reply via email to