[Bug other/85778] unexpected results with -O2, wrong code?
sesail999 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue May 15 15:45:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778
--- Comment #4 from Scott Emmons <sesail999 at gmail dot com> ---
> glibc has stat annotated with nonnull(1, 2)
1. Can you provide a reference to this code? This is helpful so that other
people running into this (and it *will* happen, this ancient code no longer
runs correctly). Thank you.
2. The manpage for stat(2) should be updated to reflect that calling stat()
with a NULL pathname will result in unpredictable behavior.
3. I'll create a pull request against cronolog and work with Debian/Ubuntu to
at least get it fixed in those distributions.
More information about the Gcc-bugs
mailing list