other/2366: The specs file does not pass the argument -xarch=v8plusa to as when compiling with -mcpu=v9 on SunOS 5.x/sparc
grubba@roxen.com
grubba@roxen.com
Fri Mar 23 10:56:00 GMT 2001
>Number: 2366
>Category: other
>Synopsis: The specs file does not pass the argument -xarch=v8plusa to as when compiling with -mcpu=v9 on SunOS 5.x/sparc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 23 10:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Henrik Grubbström <grubba@roxen.com>
>Release: gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
$ uname -srvpmi
SunOS 5.8 Generic_108528-04 sun4u sparc SUNW,Ultra-80
>Description:
The specs file handles -mcpu=ultrasparc and -mcpu=v9
differently in the %asm_cpu target (or rather -mcpu=v9
is not handled at all in that target). This has the
effect that as will reject v8 assembler.
>How-To-Repeat:
Compile something like
#if defined(__sparc_v9__) && defined(__GNUC__)
void membar(void)
{
__asm__ __volatile__ ("membar #LoadStore");
}
#endif
with eg
gcc -mcpu=v9 -c foo.c
and as will complain about using v8plus opcodes.
gcc -mcpu=ultrasparc -c foo.c
and it won't complain.
>Fix:
Fix the specs file so that it handles -mcpu=ultrasparc and -mcpu=v9 equally.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list