i18n: fix exgettext handling of C++ sources
authorJoseph Myers <joseph@codesourcery.com>
Fri, 11 Feb 2022 23:16:33 +0000 (23:16 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 11 Feb 2022 23:17:24 +0000 (23:17 +0000)
commit434b2caf5d44d58cb48c9588d4b70588f6d5965b
tree4bb74ad4074cd4c3409acf369f33495d4bb4e919
parent8dc2499aa62f768c6395c9754b8cabc1ce25c494
i18n: fix exgettext handling of C++ sources

The move of source files to .cc names broke most message extraction by
exgettext because it processed .c files with --language=GCC-source but
didn't process .cc files that way.  Fix to process files identified as
C++ that way as well.

Tested with "make gcc.pot".

* exgettext: Also process C++ sources with --language=GCC-source.
gcc/po/exgettext