On 02/03/2015 11:14 AM, Paolo Carlini wrote:
+ /* Avoid -Waddress warnings (c++/64877). */
+ TREE_NO_WARNING (pfn0) = 1;
I'd check for ADDR_EXPR before doing this; OK with that change.
Jason
Hi,
On 02/03/2015 03:19 PM, Jason Merrill wrote:
On 02/03/2015 05:45 AM, Paolo Carlini wrote:
+ if (TREE_CODE (pfn0) != ADDR_EXPR
+ || !decl_with_nonnull_addr_p (TREE_OPERAND (pfn0, 0)))
I don't like duplicating the logic for when we might know the pfn is
non-null; that see
On 02/03/2015 05:45 AM, Paolo Carlini wrote:
+ if (TREE_CODE (pfn0) != ADDR_EXPR
+ || !decl_with_nonnull_addr_p (TREE_OPERAND (pfn0, 0)))
I don't like duplicating the logic for when we might know the pfn is
non-null; that seems fragile. I'd rather go with the tf_no
Hi,
Manuel did most of the work on this [5 Regression], caused by my fix for
c++/43906, which extended a lot the functionality of -Waddress: a
spurious warning is emitted with -Waddress for an expression internally
generated in cp_build_binary_op. Manuel suggested that when safe we
could comp