[Bug c/102030] Optimization turns null ptr true

2021-08-26 Thread joeedh at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030 --- Comment #4 from Joe Eagar --- I hadn't realized the nonnull attribute is 1-based. That makes sense.

[Bug c/102030] Optimization turns null ptr true

2021-08-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/102030] Optimization turns null ptr true

2021-08-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030 --- Comment #2 from Andrew Pinski --- With -W -Wall I get the following warnings: In file included from /home/joeedh/blender/blender/intern/atomic/atomic_ops.h:138, from /home/joeedh/blender/blender/build/../source/blender/blenl

[Bug c/102030] Optimization turns null ptr true

2021-08-23 Thread joeedh at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102030 --- Comment #1 from Joe Eagar --- I forgot to add, the offending function is BM_mesh_bm_from_me: void BM_mesh_bm_from_me(Object *ob, BMesh *bm, const Mesh *me, const struc