C++ PATCH for c++/16387 and c++/16389

Mark Mitchell mark@codesourcery.com
Sat Mar 11 01:23:00 GMT 2006


Jason Merrill wrote:

> + /* Implement the __alignof keyword: Return the minimum required
> +    alignment of EXPR, measured in bytes.  For VAR_DECL's and
> +    FIELD_DECL's return DECL_ALIGN (which can be set from an
> +    "aligned" __attribute__ specification).  */
> + 
> + static tree
> + cxx_alignof_expr (tree e)

Comment should refer to "E", not "EXPR.

> + /* Process a sizeof or alignof expression where the operand is an
> +    expression.  */
> + 
> + tree
> + cxx_sizeof_or_alignof_expr (tree e, enum tree_code op)

And, pedantically, that one should reference E and OP. :-)

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list