public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/2732: Interaction with Solaris assembler and SPARCV9 instructions
@ 2002-01-27 16:06 Nathan Dorfman
  0 siblings, 0 replies; 4+ messages in thread
From: Nathan Dorfman @ 2002-01-27 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR target/2732; it has been noted by GNATS.

From: Nathan Dorfman <nathan@rtfm.net>
To: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: target/2732: Interaction with Solaris assembler and SPARCV9 instructions
Date: Thu, 10 Jan 2002 15:38:11 -0500

 Yep! -mcpu=ultrasparc has always worked great. I found it a bit odd
 that -mcpu=v9 would cause the compiler to generate the V9 instructions
 but not pass the flag to the assembler to grok them there. If this is
 the intended behavior, then there is no bug!
 
 Thanks for the followup.
 
 On Fri, Jan 04, 2002 at 05:37:36AM -0000, rodrigc@gcc.gnu.org wrote:
 Hi,
 > Synopsis: Interaction with Solaris assembler and SPARCV9 instructions
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: rodrigc
 > State-Changed-When: Thu Jan  3 21:37:35 2002
 > State-Changed-Why:
 >     Refer to the release notes at:
 >     http://gcc.gnu.org/install/specific.html#*-*-solaris2*
 >     
 >     You need to use GCC 3.1 and up.
 >     Using -mtune=ultrasparc is the safest.
 >     
 >     If you want to use -mcpu=v9, then you need to pass
 >     the assembler -xarch=v9a.
 >     So you need to do something like:
 >     gcc -Wa,-xarch=v9a
 >     
 >     See:
 >     http://gcc.gnu.org/ml/gcc-bugs/2001-05/msg00346.html
 >     
 >     Does this work for you?
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2732
 
 -- 
 "Just because a few of us can read and     \  \  \\   Nathan Dorfman
 write and do a little math, that doesn't    \     \\   nathan@rtfm.net
 mean we deserve to take over the universe."  \  \  \\   PGP Key 0832DB12


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: target/2732: Interaction with Solaris assembler and SPARCV9 instructions
@ 2002-01-27 17:45 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-27 17:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, nobody

Synopsis: Interaction with Solaris assembler and SPARCV9 instructions

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 17:45:17 2002
State-Changed-Why:
    Closed upon request.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2732


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: target/2732: Interaction with Solaris assembler and SPARCV9 instructions
@ 2002-01-03 21:37 rodrigc
  0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-03 21:37 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, nobody

Synopsis: Interaction with Solaris assembler and SPARCV9 instructions

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Thu Jan  3 21:37:35 2002
State-Changed-Why:
    Refer to the release notes at:
    http://gcc.gnu.org/install/specific.html#*-*-solaris2*
    
    You need to use GCC 3.1 and up.
    Using -mtune=ultrasparc is the safest.
    
    If you want to use -mcpu=v9, then you need to pass
    the assembler -xarch=v9a.
    So you need to do something like:
    gcc -Wa,-xarch=v9a
    
    See:
    http://gcc.gnu.org/ml/gcc-bugs/2001-05/msg00346.html
    
    Does this work for you?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2732


^ permalink raw reply	[flat|nested] 4+ messages in thread

* target/2732: Interaction with Solaris assembler and SPARCV9 instructions
@ 2001-05-03 13:06 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2001-05-03 13:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2732
>Category:       target
>Synopsis:       Interaction with Solaris assembler and SPARCV9 instructions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 03 13:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Dorfman <nathan@rtfm.net>
>Release:        2.95.2, 2.95.3, and gcc version 3.1 20010502 (experimental)
>Organization:
>Environment:
SunOS kiev 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-5_10
>Description:
This appears to be a minor oversight, but exists on
2.95.2 and 2.95.3 release versions as well as yesterday's
cvs checkout, which I did just to test this. 

If you use -mcpu=v9 (which should mean "allow SPARCV9
instruction set"), gcc will generate V9 instructions,
but will fail to tell the assembler to assemble them
(as -xarch=v9), generating the below message:

/usr/ccs/bin/as: "/var/tmp//cc9CdJR3.s", line 11: error: cannot use v8plus instructions in a non-v8plus target binary

This is the case for both C source files for which
V9 instructions are generated as well as ASM source files
which already include them.

HOWEVER: if -mcpu=ultrasparc is used, everything works
fine (as is called with -xarch=v9)...it's just that
-mcpu=v9 *should* give you the V9 instruction set.
>How-To-Repeat:
Use the attached file. Compile it with -mcpu=v9 should give
you a 'mulx' instruction. Alternatively, contact me for
a simple asm 3-liner that just uses mulx directly.

Anyway, -mcpu=v9 and -mcpu=ultrasparc will produce the
same assembler output (containing the V9 instruction mulx).
However, with -mcpu=v9 the assembly stage will fail because
as is not told to accept V9 instructions.
>Fix:
as -xarch=v9
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="multest.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="multest.c"

aW50IG1haW4oKSB7CglyZWdpc3RlciBpbnQgaSA9IDUsIGogPSAzOwoJaSAqPSBqOwp9Cg==


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-28  1:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-27 16:06 target/2732: Interaction with Solaris assembler and SPARCV9 instructions Nathan Dorfman
  -- strict thread matches above, loose matches on Subject: below --
2002-01-27 17:45 rodrigc
2002-01-03 21:37 rodrigc
2001-05-03 13:06 nathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).