[Bug jit/87003] use nonnull attribute in libgccjit.h

2018-08-22 Thread tromey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87003 --- Comment #2 from Tom Tromey --- I don't really know the best thing to do. I see your point about graceful failure being a useful feature, in cases where the result of some gcc-jit function is passed as an argument to another one. Maybe there

[Bug jit/87003] use nonnull attribute in libgccjit.h

2018-08-20 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87003 --- Comment #1 from David Malcolm --- It would be good to make the header file be more self-documenting. In general, every pointer argument ought to be non-NULL, but a NULL will be checked for and gracefully rejected. The exception is gcc_jit_l