pro64-support
[Top] [All Lists]

gcc extension to control variable names works with sgiCC, but not sgicc.

To: pro64-support@xxxxxxxxxxx
Subject: gcc extension to control variable names works with sgiCC, but not sgicc.
From: David Goodwin <goodwin@xxxxxxxxxxxxx>
Date: Fri, 5 Jan 2001 09:37:38 -0800 (PST)
Cc: goodwin@xxxxxxxxxxxxx
Reply-to: goodwin@xxxxxxxxxxxxx
Sender: owner-pro64-support@xxxxxxxxxxx
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".



<Prev in Thread] Current Thread [Next in Thread>