This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Optimization Diary
>>>>> "Dan" == Daniel Berlin <dberlin@dberlin.org> writes:
Dan> In addition to Tom's concerns, it seems to me to be a *really bad idea*
Dan> to try to come up with integer values for every single message, instead
Dan> of just placing a string there.
One reason to prefer the numerical approach is that it makes
localization of the user interface simpler.
Dan> The easiest way there is to just put a comment before the function or
Dan> whatever that generates the string saying it shouldn't be changed
Dan> between versions.
We would also have to constrain the messages not to have any
printf-style substitutions, since that would be an i18n disaster.
Otherwise, yeah, I was wondering about this myself.
Tom