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

Jerry DeLisle jvdelisle@charter.net
Fri Dec 7 13:55:00 GMT 2018


On 12/6/18 2:54 AM, Mark Eggleston wrote:
> On 06/12/2018 10:33, 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.
> I should have made this clear.
>>>
>>> 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.
> I agree.
>> So do you prefer to always use ' ' instead of '\0', or decide based on 
>> -fdec
>> without a separate option controlling that?
> It would be simpler to dispense with the extra option and just set space 
> padding with -fdec. I think it would be odd to use something other than 
> a space or '\0' for padding.
>>
>>     Jakub
> Mark
> 

Agree with Mark on this.

Jerry



More information about the Fortran mailing list