Re:Implementing Hash Tables in C
by garaetjjte on Saturday October 16, 2021 @04:36PM
(#28891253)
Use -fno-strict-aliasing if you do have such code.
[ Parent
| on HN ]
Re:Implementing Hash Tables in C
by matheusmoreira on Saturday October 16, 2021 @04:47PM
(#28891356)
I do. The -fno-strict-aliasing and -fwrapv are standard flags for me. They essentially fix C the language by making it behave reasonably.
But -fwrapv is broken for decades and will not be fixed.
Re:Implementing Hash Tables in C
by matheusmoreira on Saturday October 16, 2021 @05:33PM
(#28891786)
How is it broken?
Eg https://marc.info/?l=gnulib-bug&m=124788622422245&w=2
it disables signed integer overflow checks