re PR tree-optimization/15262 ([tree-ssa] Alias analyzer cannot handle addressable...
authorAndrew Pinski <apinski@apple.com>
Mon, 23 Aug 2004 03:12:38 +0000 (03:12 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 23 Aug 2004 03:12:38 +0000 (20:12 -0700)
commit9fc3b39aa9656b1c626f6a6fed03646040b03122
tree78eae43b8b4b4c41f658de8bb312ce1a83255267
parent35e0e58c7ae736ad49bb6c05222c0f04fed4a2c4
re PR tree-optimization/15262 ([tree-ssa] Alias analyzer cannot handle addressable fields)

2004-08-22  Andrew Pinski  <apinski@apple.com>

       PR c/15262
       * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
       expression is not constant.
       (c_finish_return): Do not go through INDIRECT_REF when looking
       for the inner expression of an ADDR_EXPR for warning about.

2004-08-22  Andrew Pinski  <apinski@apple.com>

       * g++.dg/opt/pr14029.C: New test.
       * gcc.c-torture/execute/pr15262.c: New test.
2004-08-22  Andrew Pinski  <apinski@apple.com>

       PR c++/14029
       * typeck.c (build_unary_op): Use &a.b if the foldded lowered
       expression is not constant.

From-SVN: r86396
gcc/ChangeLog
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr14029.C [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr15262.c [new file with mode: 0644]