[Bug other/85778] unexpected results with -O2, wrong code?

2018-05-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug other/85778] unexpected results with -O2, wrong code?

2018-05-15 Thread sesail999 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778 --- Comment #4 from Scott Emmons --- > 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

[Bug other/85778] unexpected results with -O2, wrong code?

2018-05-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Version|unknown

[Bug other/85778] unexpected results with -O2, wrong code?

2018-05-14 Thread sesail999 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778 Scott E. changed: What|Removed |Added CC||sesail999 at gmail dot com --- Comment #2

[Bug other/85778] unexpected results with -O2, wrong code?

2018-05-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85778 --- Comment #1 from Andrew Pinski --- 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.