This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR target/65058] AIX: missing extern decorations "[DS]" for functions and "[RW]" for variables
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Michael Haubenwallner <michael dot haubenwallner at ssi-schaefer dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Feb 2015 12:28:48 -0500
- Subject: Re: [PATCH PR target/65058] AIX: missing extern decorations "[DS]" for functions and "[RW]" for variables
- Authentication-results: sourceware.org; auth=none
- References: <54DE7467 dot 3060901 at ssi-schaefer dot com> <CAGWvnykONi6TOZCcFYhp6zRemftXtzf6Os5qGMUq0BMhbVa0QQ at mail dot gmail dot com> <54E2EED6 dot 10208 at ssi-schaefer dot com> <CAGWvny=Z42mxcVZnHPf=pRP_-=59UTTmbSJvfOqbEi21Xy5gGA at mail dot gmail dot com> <54E36ED1 dot 5060702 at ssi-schaefer dot com>
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