[Fortran, (RFC) patch] PR49110/51055 Assignment to alloc. deferred-length character vars

Janus Weil janus@gcc.gnu.org
Thu Oct 4 12:50:00 GMT 2012


Hi,

>> One more comment: Since its appearance is a bit scattered in the code,
>> how about using a small macro which prepends the "_F" prefix to a
>> given variable name?
>>
>> Btw, note that we are using a double underscore scheme in other places
>> (like __class, __vtab, __vtype, etc). I have even used an '@' in one
>> place, namely (hidden) procedure pointer results ("ppr@"). Is there a
>> need to unify all those cases?
>
>
> It think it would be useful to unify those. Are you volunteering?

yeah, why not ;)

Attached is a draft patch (not regtested), which adds a macro
GFC_PREFIX (in gfortran.h) to prepend "_F" to the cases included in
Tobias' earlier patch as well as the OOP-related stuff and procedure
pointer results. It also bumps the module version.

Any comments so far? (Of course the name of the macro can be debated.
I just tried to keep it short for now.)

Cheers,
Janus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mangling.diff
Type: application/octet-stream
Size: 14770 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20121004/8c08ba44/attachment.obj>


More information about the Fortran mailing list