diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 82fe613..b416a5d 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -966,7 +966,7 @@ strict_aliasing_warning(tree otype, tree type, tree expr) && POINTER_TYPE_P (type) && POINTER_TYPE_P (otype) && TREE_CODE (expr) == ADDR_EXPR && (DECL_P (TREE_OPERAND (expr, 0)) - || TREE_CODE (TREE_OPERAND (expr, 0)) == COMPONENT_REF) + || handled_component_p (TREE_OPERAND (expr, 0))) && !VOID_TYPE_P (TREE_TYPE (type))) { /* Casting the address of an object to non void pointer. Warn |