diff options
author | Jason Merrill <jason@redhat.com> | 2018-02-15 12:43:01 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-02-15 12:43:01 -0500 |
commit | 60887f8c2df851fd14988578dfe23126e2e8b9b5 (patch) | |
tree | b86ae939216c83047771ceb8b0eb24c2ce550791 /libcpp/ChangeLog | |
parent | 5cedffbc3249a3f14ea57567a5f089d502cad8d3 (diff) | |
download | gcc-60887f8c2df851fd14988578dfe23126e2e8b9b5.zip gcc-60887f8c2df851fd14988578dfe23126e2e8b9b5.tar.gz gcc-60887f8c2df851fd14988578dfe23126e2e8b9b5.tar.bz2 |
PR preprocessor/83063 - __VA_OPT__ and ##
PR preprocessor/83708
* macro.c (vaopt_state): Reorder m_last_was_paste before m_state.
(vaopt_state::vaopt_state): Adjust.
(vaopt_state::update_flags): Add BEGIN and END.
(vaopt_state::update): Return them.
(copy_paste_flag): Factor out of replace_args.
(last_token_is): New.
(replace_args): Handle BEGIN and END. Avoid padding there.
(tokens_buff_last_token_ptr): Return NULL if no tokens.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r257696
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 9c675a5..2f6e1f2 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,17 @@ +2018-02-15 Jason Merrill <jason@redhat.com> + Jakub Jelinek <jakub@redhat.com> + + PR preprocessor/83063 - __VA_OPT__ and ## + PR preprocessor/83708 + * macro.c (vaopt_state): Reorder m_last_was_paste before m_state. + (vaopt_state::vaopt_state): Adjust. + (vaopt_state::update_flags): Add BEGIN and END. + (vaopt_state::update): Return them. + (copy_paste_flag): Factor out of replace_args. + (last_token_is): New. + (replace_args): Handle BEGIN and END. Avoid padding there. + (tokens_buff_last_token_ptr): Return NULL if no tokens. + 2018-01-31 Jakub Jelinek <jakub@redhat.com> PR preprocessor/69869 |