[PATCH, Fortran] pad char to int conversions with spaces instead of zeros (legacy)

Jerry DeLisle jvdelisle@charter.net
Fri Dec 7 01:58:00 GMT 2018


On 12/6/18 2:33 AM, Jakub Jelinek wrote:
> On Wed, Dec 05, 2018 at 06:27:00PM -0800, Jerry DeLisle wrote:
>> I disagree completely. I assume the idea of -fdec-pad-with-spaces is to
>> accomodate some old dec fortran code. The only reason to use some other
>> character is if someone is writing new dec fortran code, which is implying
>> encouraging people to be writing non standard conforming code.
>>
>> Even if it is conforming in the sense that it is processor dependent you are
>> encouraging people to create new non portable code across compilers. Please
>> just stay consistent with Intel.
> 
> So do you prefer to always use ' ' instead of '\0', or decide based on -fdec
> without a separate option controlling that?
> 

Keep current default of '\0' and use ' ' when -fdec given.

Regards,

Jerry



More information about the Fortran mailing list