diff options
author | Jiufu Guo <guojiufu@linux.ibm.com> | 2022-05-09 17:48:00 +0800 |
---|---|---|
committer | guojiufu <guojiufu@linux.ibm.com> | 2022-05-10 11:36:22 +0800 |
commit | 067fe66c8ba9b16feacf66fce9ae668091e42821 (patch) | |
tree | 190e8892ca7c27f8e4f765d1ebb01728ae3030a7 /gcc/cp/optimize.cc | |
parent | bd022ff9752262a70f44b57808447f823392989e (diff) | |
download | gcc-067fe66c8ba9b16feacf66fce9ae668091e42821.zip gcc-067fe66c8ba9b16feacf66fce9ae668091e42821.tar.gz gcc-067fe66c8ba9b16feacf66fce9ae668091e42821.tar.bz2 |
rs6000: avoid peeking eof after __vector
There is a rare corner case: where vector is followed only by one
valid identifer and the ";" which is near the end of the file.
Like the case in PR101168:
using vdbl = __vector double;
#define BREAK 1
For this case, "vector double" is followed by CPP_SEMICOLON and then
EOF. There is no more tokens need to check for this case.
PR preprocessor/101168
gcc/ChangeLog:
* config/rs6000/rs6000-c.cc (rs6000_macro_to_expand):
Avoid empty identifier.
gcc/testsuite/ChangeLog:
* g++.target/powerpc/pr101168.C: New test.
Diffstat (limited to 'gcc/cp/optimize.cc')
0 files changed, 0 insertions, 0 deletions