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 PR target/65058] AIX: missing extern decorations "[DS]" for functions and "[RW]" for variables


On Tue, Feb 17, 2015 at 11:39 AM, Michael Haubenwallner
<michael.haubenwallner@ssi-schaefer.com> wrote:
>
> Am 2015-02-17 um 16:00 schrieb David Edelsohn:
>> On Tue, Feb 17, 2015 at 2:33 AM, Michael Haubenwallner
>> <michael.haubenwallner@ssi-schaefer.com> wrote:
>
>>> One more thought: How is that dollar_inside thing seen in
>>> ASM_OUTPUT_EXTERNAL supposed to work/be used?
>>
>> AIX XCOFF does not allow $ in label names.  The code is suppose to
>> substitute underscore "_" in the name and then generate a ".rename"
>> pseudo-op so the visible name of the symbol is correct.
>
> Ok - but how to make use of that?
> I've tried:
>
>   $ cat dollarfunc.c
>   extern void externfunc(void) asm("extern$func");
>   void (*localfunc)(void) = externfunc;
>
>   $ gcc -c dollar.c
>   Assembler:
>   /tmp//ccg2B8d2.s: line 9: 1252-142 Syntax error.
>   /tmp//ccg2B8d2.s: line 11: 1252-142 Syntax error.
>
> Is this something that should work already?

It used to work.  Patches welcome.

- David


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