This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] Point to -frange-check in the error message (Re: data type problems)


François-Xavier Coudert schrieb:
> Hi Tobias,
>
> Noone commented your patch:
>
>> 2007-04-12  Tobias Burnus <burnus@net-b.de>
>>
>>         * primary.c (match_integer_constant): Mention -fno-range-check
>>         in the error message.
>
> I think it's a good idea, but I'd change the message from:
>> +      gfc_error ("Integer too big for its kind at %C. Use
>> -fno-range-check "
>> +                "to disable this check.");
> to something that is not so directive (after all, it's only a
> workaround, and probably a bad thing to do if you can modify the
> code). Perhaps "This check can be disabled with option
> -fno-range-check"?

Thanks for the suggestion (it is now quite long, but so be it).

I use now (r124060):

-      gfc_error ("Integer too big for its kind at %C");
+      gfc_error ("Integer too big for its kind at %C. This check can be "
+                "disabled with the option -fno-range-check");


Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]