Commit d5581a8
Fix AltiVec bool keyword conflict with -Dbool=_Bool
GCC with -maltivec and -std=c11 redefines 'bool' as '__vector __bool int'
in some contexts, breaking all uses of scalar bool in the HACL* BLAKE2
SIMD128 code. The -Dbool=_Bool flag forces the C99 scalar boolean type,
which is what HACL* intends.
This is a known GCC/AltiVec interaction: the AltiVec extension adds
'bool' as a keyword for vector boolean types, conflicting with C99/C11
stdbool.h. The -Dbool=_Bool workaround is used by several other projects
including FFmpeg and OpenSSL.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 40e72eb commit d5581a8
2 files changed
+2
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8133 | 8133 | | |
8134 | 8134 | | |
8135 | 8135 | | |
8136 | | - | |
| 8136 | + | |
8137 | 8137 | | |
8138 | 8138 | | |
8139 | 8139 | | |
| |||
0 commit comments