[PATCH] libcpp, v2: Fix _Pragma in #__VA_ARGS__ [PR103165]
Mon Nov 22 20:56:12 GMT 2021
On Mon, 22 Nov 2021, Jakub Jelinek via Gcc-patches wrote:
> On Thu, Nov 18, 2021 at 09:55:52PM +0000, Joseph Myers wrote:
> > On Thu, 18 Nov 2021, Jakub Jelinek via Gcc-patches wrote:
> > > Are we handling the pragma at a wrong phase of preprocessing?
> > I think that converting it to a single preprocessing token (rather than
> > four separate preprocessing tokens), at a stage when stringizing might
> > still occur, does indicate it's being processed too soon, and it would be
> > better to do that only when it's known that the _Pragma preprocessing
> > token will actually occur in the results of preprocessing the source file.
> So like this? I.e. don't process _Pragma during expand_args where we can't
> know what the macro will do with it?
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
Joseph S. Myers
More information about the Gcc-patches