This is the mail archive of the gcc@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]

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];


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