I have expanded the existing FAQ with the answer below:
https://gcc.gnu.org/wiki/FAQ#diagnostics_list
with a minor nit: Grepping is not trivial at all since diagnostic strings often
appear in calls to the large number of wrapper functions that, in turn, call
the core diagnostic functions, which are also much more numerous than the few
ones mentioned by Jonathan (just see diagnostic-core.h). Building a list of
functions to grep for would be a major endeavour on its own.
Cheers,
Manuel.
On 16/05/16 18:15, Martin Sebor wrote:
On 05/16/2016 12:31 AM, 유한솔 wrote:
Dear GCC.
Hello. I'm student of Dankook University in South Korea.
I'm studying about C compiler for increasing software quality.
So I want to get all of compile error message list of gcc about C language.
I was trying to find it. But I can't find it anywhere.
Only I can get part of it.
As Jonathan already said, the messages are in the source code
itself. You can either grep GCC sources for them, or you can
view the gcc.pot file generated from the GCC sources by the
Translation Project. The file and its translations into
various languages are stored in the GCC repository here:
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/po
Many of the messages are likely to only make sense in the context
of the program they are issued for and the compiler options used
to compiler it, and not so much on their own.
Martin