Re: [PATCH v3] Add strict aliasing warning when inlining function.

2014-08-20 Thread lin zuojian
Hi, And I have run test like this: make check-g++ RUNTESTFLAGS="dg.exp" And turned out there are 3 more unexpected failures like g++.dg/opt/pmf1.C /home/linzj/src/build-gcc/gcc-trunk/gcc/testsuite/g++.dg/opt/pmf1.C: In function ‘int main()’: /home/linzj/src/build-gcc/gcc-trunk/gcc

Re: [PATCH v3] Add strict aliasing warning when inlining function.

2014-08-20 Thread lin zuojian
Hi, This version make sure that the added test case pass the test. * tree-inline.c (setup_one_parameter): Add strict aliasing check. * c-family/c-common.c (strict_aliasing_warning): Move to alias.c. * c-family/c-common.h (strict_aliasing_warning): Move to tree.h. * alias.c