OSDN Git Service

* c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Aug 2004 18:49:20 +0000 (18:49 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Aug 2004 18:49:20 +0000 (18:49 +0000)
commit7da1265c4b739e985de5264663fcf2078ee7c582
treeb64b1c02953ecd652d493aee5e592cde95eaf88b
parenta99b42ba10b068fb53518b3bc8ed3c7c4c47eb4a
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86794 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/varasm.c