This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 46313: OOP-ABI issue, ALLOCATE issue, CLASS renaming issue
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, tkoenig <tkoenig at netcologne dot de>
- Date: Sun, 7 Nov 2010 00:56:36 +0100
- Subject: Re: [Patch, Fortran, OOP] PR 46313: OOP-ABI issue, ALLOCATE issue, CLASS renaming issue
- References: <20101106233415.7DA533BE18@mailhost.lps.ens.fr>
>> If we are going to change the naming of the OOP stuff anyway, what about
>> the possible name collisions with -fdollar-ok ?
>
> With the patch for PR 46313, the test compiled with -fdollar-ok is
> compiled without problem on x86_64-apple-darwin10.
Yes, that is expected, because the patch changes the name of the vtab
to "vtab$main$dt", so one needs to change the name of the subroutine
in the test case in the same way in order to see the failure:
program main
type :: dt
! ...
end type dt
class(dt), pointer :: cp
contains
subroutine vtab$main$dt
end subroutine vtab$main$dt
end program main
Btw, I just tried the version with '@' instead of '$'. Unfortunately
the assembler doesn't seem to like that. I get tons of errors like:
/tmp/ccToz7yL.s:3: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccToz7yL.s:4: Error: invalid character '@' in mnemonic
Are there any other special characters we can exploit? What about the
pound sign or the ampersand? Any problems to expect with these? Or
should we rather stay with the dollar and ignore the problems with
-fdollar-ok?
Cheers,
Janus