This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c-common.c line 5179: isn't this a nop?
- From: Matt Thomas <matt at 3am-software dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 14 May 2007 23:27:45 -0700
- Subject: c-common.c line 5179: isn't this a nop?
In handle_aligned_attributes in c-common.c, at line 5146, it does
type = &TREE_TYPE (decl);
Then at 5179 it does
TREE_TYPE (decl) = *type;
In between, type doesn't change so that's really
TREE_TYPE (decl) = * &TREE_TYPE (decl);
or
TREE_TYPE (decl) = TREE_TYPE (decl);
now that seems redundant to me. Maybe it was supposed to be
something else.
I noticed this while trying to figure out why the following has an
error on line 5:
typedef unsigned long ul_t __attribute__((__aligned__(16)));
typedef volatile unsigned long vul_t __attribute__((__aligned__(16)));
int ul[__alignof(ul_t) == 16 ? 1 : -1];
int vul[__alignof(vul_t) == 16 ? 1 : -1];