>>434
なるほどそうなのかも…
ありがとう。参考になります。


いろいろ試してみました。
-O2を使っていても、>>433のソースの24行目のfprintfがなければ、
NULLチェックをしてくれたり挙動がまちまち…

というのは、
ttp://ja.pastebin.ca/1795281
このソースなら、

$ gcc -Wall -O2 test.c -o test
t.c: In function 'main':
t.c:10: warning: null argument where non-null required (argument 1)
$ ./test
my_func failed

-O2付きでもちゃんとNULLチェックしてくれる!どゆことー