Issue 182951
Summary [clang] _GCC_DESTRUCTIVE_SIZE potentially incorrect on Apple arm64
Labels clang
Assignees
Reporter ldionne
    On Apple arm64, `sysctl -a | grep cacheline` reports `hw.cachelinesize: 128`. However, 

```
$ echo | clang++ -target apple-macos-arm64 -dM -E - | grep -E "__GCC.*SIZE"
#define __GCC_CONSTRUCTIVE_SIZE 64
#define __GCC_DESTRUCTIVE_SIZE 64
```

That is a bit surprising, since I would expect at least `__GCC_DESTRUCTIVE_SIZE` to be 128. Did I misunderstand something, is there a goal to be compatible with GCC, or is that really a bug?

@philnik777 or @huixie90 I think this came up in some of our prior discussions

CC @AaronBallman as the author of https://github.com/llvm/llvm-project/pull/89446, which added that macro to Clang.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to