This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] c-cppbuiltin.c bits for libstdc++/31518
On 02 July 2007 19:07, Paolo Carlini wrote:
> Andrew Pinski wrote:
>
>> On 7/2/07, Paolo Carlini <pcarlini@suse.de> wrote:
>>
>>>> I think it is wrong to have this as a macro defined by the compiler.
>>>
>>> Why, exactly?
>>
>> Because people would abuse it. It is not like libstdc++ can't use an
>> env variable to see what the length is requested at runtime rather
>> than at compile time. Since the errors are being emitted at runtime.
>
> In fact, we are not using environment variables this way. One big
> problem I can see, is error checking: what happens if the user defines,
> say, _GLIBCXX_MESSAGE_LENGHT, to something which is not a number?
Then demons will fly out of their nose and it's all their own fault. We don't have to care about that.
cheers,
DaveK
--
Can't think of a witty .sigline today....