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

2019-10-04 Thread Bernd Edlinger
On 10/4/19 2:16 PM, Richard Sandiford wrote: > Bernd Edlinger writes: >> Hi, >> >> this fixes a -Wshadow=local warning when using AUTO_DUMP_SCOPE in >> nested blocks. Since NAME i a string I cannot use it to create >> a unique name for the auto_dump_scope object. >> >> So I used XCONCAT2 from goo

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

2019-10-04 Thread Richard Sandiford
Bernd Edlinger writes: > Hi, > > this fixes a -Wshadow=local warning when using AUTO_DUMP_SCOPE in > nested blocks. Since NAME i a string I cannot use it to create > a unique name for the auto_dump_scope object. > > So I used XCONCAT2 from good old symcat.h, to mangle the __LINE__ > macro into th

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

2019-10-03 Thread Bernd Edlinger
Hi, this fixes a -Wshadow=local warning when using AUTO_DUMP_SCOPE in nested blocks. Since NAME i a string I cannot use it to create a unique name for the auto_dump_scope object. So I used XCONCAT2 from good old symcat.h, to mangle the __LINE__ macro into the scope object name. Bootstrapped an