| To: | goodwin@xxxxxxxxxxxxx |
|---|---|
| Subject: | Re: gcc extension to control variable names works with sgiCC, but not sgicc. |
| From: | Chandrasekhar Murthy <murthy@xxxxxxx> |
| Date: | Fri, 05 Jan 2001 10:01:30 -0800 |
| Cc: | pro64-support@xxxxxxxxxxx |
| References: | <14934.1634.87891.229902@heart.hq.tensilica.com> |
| Sender: | owner-pro64-support@xxxxxxxxxxx |
David Goodwin wrote:
>
> gcc allows this use of "asm" to set the name used for a variable in the
> assembly file to be different than the variable name in the source:
>
> char myarray[10] asm ("asmname_myarray");
> char *
> proc (void)
> {
> return myarray;
> }
>
> > sgicc -v
> SGIcc Compilers: Version 0.01.0-12
> > sgiCC -v
> SGIcc Compilers: Version 0.01.0-12
>
> Compiling with sgiCC gives the correct result, i.e. the array is referred
> to as "asmname_myarray". Using sgicc, the array is incorrectly referred to
> as "myarray".
sgicc is using DECL_NAME instead of DECL_ASSEMBLER_NAME in
tree_symtab.cxx.
I think this should fix the problem.
Murthy
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | gcc extension to control variable names works with sgiCC, but not sgicc., David Goodwin |
|---|---|
| Next by Date: | Re: gcc extension to control variable names works with sgiCC, but not sgicc., David Goodwin |
| Previous by Thread: | gcc extension to control variable names works with sgiCC, but not sgicc., David Goodwin |
| Next by Thread: | Re: gcc extension to control variable names works with sgiCC, but not sgicc., David Goodwin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |