[PING][patch] have "would be stringified in traditional C" warning in libcpp/macro.c be controlled by -Wtraditional

Eric Gallager egall@gwmail.gwu.edu
Sat May 6 15:38:00 GMT 2017


Pinging this: https://gcc.gnu.org/ml/gcc-patches/2017-03/msg01325.html

On 3/24/17, Eric Gallager <egall@gwmail.gwu.edu> wrote:
> It seemed odd to me that gcc was issuing a warning about compatibility
> with traditional C that I couldn't turn off by pushing/popping
> -Wtraditional over the problem area, so I made the attached (minor)
> patch to fix it. Survives bootstrap, but the only testing I've done
> with it has been compiling the one file that was giving me issues
> previously, which I'd need to reduce further to turn it into a proper
> test case.
>
> Thanks,
> Eric Gallager
>
> libcpp/ChangeLog:
>
> 2017-03-24  Eric Gallager  <egall@gwmail.gwu.edu>
>
> 	* macro.c (check_trad_stringification): Have warning be controlled by
> 	-Wtraditional.
>

So I did the reducing I mentioned above and now have a testcase for
it; it was pretty similar to the one from here:
https://gcc.gnu.org/ml/gcc-patches/2017-03/msg01319.html
so I combined them into a single testcase and have attached the
combined version. I can confirm that the testcase passes with my patch
applied.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragma-diag-7.c
Type: text/x-csrc
Size: 774 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170506/322149e2/attachment.bin>


More information about the Gcc-patches mailing list