This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/85778] unexpected results with -O2, wrong code?
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 May 2018 18:27:19 +0000
- Subject: [Bug other/85778] unexpected results with -O2, wrong code?
- Auto-submitted: auto-generated
- References: <bug-85778-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It depends on if glibc is adding the nonnull attribute to stat or is it GCC.
Also what does the C (and POSIX) standard says about a null pointer being
passed as the string to stat.