This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re:[PATCH] Make C frontend emit &a[0] for array-to-pointer decay


2005-05-19 Richard Guenther <rguenth@gcc.gnu.org>

        * c-typeck.c (default_function_array_conversion): Emit
        array-to-pointer decay as &a[0].
        (build_unary_op): Emit &a[i] in its original form rather
        than splitting it to a + i.  Mark compound literal
        expressions constant if they are in ARRAY_REF form.

This is OK. (Of course, it's probably not suitable for stage 3.)


:REVIEWMAIL:

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]