[LLVMdev] php crash

Xi Wang xi.wang at gmail.com
Fri Apr 3 09:37:10 PDT 2009


On Fri, Apr 3, 2009 at 12:07 PM, Chris Lattner <clattner at apple.com> wrote:
> It is impossible to tell with this amount of detail.  Does it work
> correctly if you build with -O0 ?

Yes, with -O0 the resulting executable looks fine.  --enable-debug
actually sets -O0 (otherwise -O2).

Clang can build/test php 5.2.9 with either -O0 or -O2, but not for php
5.3RC0 with -O2.  I further looked into the php code.  It seems that
php 5.3 is using inline asm.  Is that the reason?

- xi




More information about the llvm-dev mailing list