why are we not using const?
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Jun 27 15:45:00 GMT 2006
"Manuel López-Ibáñez" <lopezibanez@gmail.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 :-)
-- Gaby
More information about the Gcc
mailing list