top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

I want to get all of compile error message list of gcc about C language?

0 votes
566 views

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. How can I find it?

Please help?

posted May 16, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
There is no list, you'll have to examine the source code to find everywhere that an error, warning, or pedwarn can be produced.

2 Answers

+1 vote
answer May 18, 2016 by Shivam Kumar Pandey
0 votes

As Naveena 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.

answer May 16, 2016 by anonymous
Similar Questions
0 votes

is it possible to add a private extension to the core language (C/C++) by writing a gcc plugin?

The extension in mind is something like this

[variable_definitions;]

Later I want this be possible also inside statement headers, for example

for ([double d = 1.0; bool f = false;] size_t i = 0; i < vec.size(); ++i)
 ...

The scope of the so-defined variables shall be the same scope they are in, ie. in the for-loop case just the scope of the for-loop itself, much like the case with i.

0 votes

I am looking for detailed description of optimization flags that are provided by GCC compiler ?

...