Re: [PATCH] Fix -Wshadow=local warnings in cgraph.h

2019-10-04 Thread Richard Biener
On Thu, Oct 3, 2019 at 5:18 PM Bernd Edlinger wrote: > > Hi, > > this fixes a -Wshadow=local warning in the FOR_EACH_ALIAS macro > that happens when it is used in lto/lto-partition.c in a nested > block. > > For now to keep the patch simple, using the fact that the ALIAS > parameter is always a si

[PATCH] Fix -Wshadow=local warnings in cgraph.h

2019-10-03 Thread Bernd Edlinger
Hi, this fixes a -Wshadow=local warning in the FOR_EACH_ALIAS macro that happens when it is used in lto/lto-partition.c in a nested block. For now to keep the patch simple, using the fact that the ALIAS parameter is always a simple name, concatenate _iter_ to make the loop variable a reserved nam