c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a COMPONENT_REF to pointer...
authorRichard Henderson <rth@redhat.com>
Mon, 30 Aug 2004 18:49:20 +0000 (11:49 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 30 Aug 2004 18:49:20 +0000 (11:49 -0700)
commit5cc200fcf0b382bb7509f26eb8bd9cc6538e255d
treeb64b1c02953ecd652d493aee5e592cde95eaf88b
parent1c340cb66c5a3f1d3e0fcc88100ebacb33c78f1f
c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a COMPONENT_REF to pointer arithmetic.

        * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
        COMPONENT_REF to pointer arithmetic.
        * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
        constant "c" as a valid constant initializer.  Allow narrowing of
        differences against the same base object, for any base object.

From-SVN: r86794
gcc/ChangeLog
gcc/c-typeck.c
gcc/varasm.c