This is the mail archive of the
mailing list for the GCC project.
Re: why are we not using const?
"Manuel López-Ibáñez" <email@example.com> writes:
| Dear all,
| from comments in the #gcc irc channel, I understood that it is not
| advisable for gcc patches to use the const qualifier in function
| prototypes. I would like to understand why. Apart from its main
| purpose, I believed that the use of 'const' helps the compiler to
| optimise the code.
We we do have numbers that support that claim for real programs, then
we have a bug in the optimizers :-)