public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
@ 2005-10-22  3:36 ` pinskia at gcc dot gnu dot org
  2005-10-22  9:52 ` paolo dot bonzini at lu dot unisi dot ch
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-22  3:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-10-22 03:36 -------
Fixed at least on the mainline:
t.c: In function 'ret':
t.c:3: warning: GCC vector returned by reference: non-standard ABI extension
with no compatibility guarantee
t.c: In function 'pass':
t.c:4: warning: GCC vector passed by reference: non-standard ABI extension with
no compatibility guarantee


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1 Regression] missing|[4.0 Regression] missing
                   |error messages passing      |error messages passing
                   |vectors with -mno-altivec - |vectors with -mno-altivec -
                   |mabi=altivec                |mabi=altivec


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
  2005-10-22  3:36 ` [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec pinskia at gcc dot gnu dot org
@ 2005-10-22  9:52 ` paolo dot bonzini at lu dot unisi dot ch
  2006-01-04  8:57 ` bonzini at gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: paolo dot bonzini at lu dot unisi dot ch @ 2005-10-22  9:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot bonzini at lu dot unisi dot ch  2005-10-22 09:52 -------
Subject: Re:  [4.0 Regression] missing error messages passing vectors with
-mno-altivec -mabi=altivec

I *think* it is also fixed on 4.0; a grep for the error message in
config/rs6000/rs6000.c would confirm or deny this.

Paolo


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
  2005-10-22  3:36 ` [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec pinskia at gcc dot gnu dot org
  2005-10-22  9:52 ` paolo dot bonzini at lu dot unisi dot ch
@ 2006-01-04  8:57 ` bonzini at gnu dot org
  2006-01-05 17:52 ` janis at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: bonzini at gnu dot org @ 2006-01-04  8:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bonzini at gnu dot org  2006-01-04 08:57 -------
Janis, can you confirm this is fixed on 4.0?


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631



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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-01-04  8:57 ` bonzini at gnu dot org
@ 2006-01-05 17:52 ` janis at gcc dot gnu dot org
  2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-01-05 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from janis at gcc dot gnu dot org  2006-01-05 17:52 -------
My nightly build compilers don't show errors or warnings from anything later
than 3.4:

elm3b11% /opt/gcc-nightly/trunk/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/4.1/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/4.0/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
elm3b11% /opt/gcc-nightly/3.4/bin/gcc -c -mno-altivec -mabi=altivec 18631.c
18631.c: In function `ret':
18631.c:3: error: Cannot return value in vector register because altivec
instructions are disabled, use -maltivec to enable them.
18631.c: In function `pass':
18631.c:4: error: Cannot pass argument in vector register because altivec
instructions are disabled, use -maltivec to enable them.

Results are the same with -Wall, and for trunk on 20051002 and 20051030. 
Andrew, what options did you use to get the warnings shown in comment #3, and
was that with powerpc*-*-linux*?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631



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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-01-05 17:52 ` janis at gcc dot gnu dot org
@ 2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
  2007-01-18  3:11 ` gdr at gcc dot gnu dot org
  2007-02-03 15:31 ` gdr at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11  3:17 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.3                       |4.0.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
@ 2007-01-18  3:11 ` gdr at gcc dot gnu dot org
  2007-02-03 15:31 ` gdr at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-01-18  3:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from gdr at gcc dot gnu dot org  2007-01-18 03:11 -------
Won't fix for GCC-4.0.x


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
       [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2007-01-18  3:11 ` gdr at gcc dot gnu dot org
@ 2007-02-03 15:31 ` gdr at gcc dot gnu dot org
  6 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 15:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from gdr at gcc dot gnu dot org  2007-02-03 15:31 -------
won't fix in GCC-4.0.4


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
  2004-11-23 16:48 [Bug target/18631] New: " janis187 at us dot ibm dot com
  2004-11-24  6:18 ` [Bug target/18631] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-24 16:53 ` janis187 at us dot ibm dot com
  1 sibling, 0 replies; 9+ messages in thread
From: janis187 at us dot ibm dot com @ 2004-11-24 16:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis187 at us dot ibm dot com  2004-11-24 16:53 -------
Oops, in the submission I said "There used to be error messages for passing
vectors by value or returning vectors from functions if AltiVec support was on
but the non-AltiVec ABI was used."  That should be: There used to be error
messages ... if AltiVec support was not on and the AltiVec ABI was used.

The AltiVec ABI says that vectors that map to hardware vectors are passed in
vector registers.  That variant of the ABI is the default but can be turned
off with -mabi=no-altivec, which is useful for binary compatibility with
modules that will be used on multiple types of PowerPC-64 hardware.  The ABI
doesn't cover generic vectors that don't map to hardware vectors, but GCC
passes them by reference for either variant of the ABI.  It probably doesn't
specifically cover the case of generic vectors that map to hardware vectors
when AltiVec support isn't enabled, but that seems surprising enough that it
ought to continue to be an error.

I personally think it ought to be an error to pass any synthetic vector by
value unless it is specifically covered by the ABI, but that's another mess
that no one wants to touch.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

* [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec
  2004-11-23 16:48 [Bug target/18631] New: " janis187 at us dot ibm dot com
@ 2004-11-24  6:18 ` pinskia at gcc dot gnu dot org
  2004-11-24 16:53 ` janis187 at us dot ibm dot com
  1 sibling, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-24  6:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-24 06:18 -------
Confirmed, I really don't think this should be an error as on darwin like ppc64-linux the ABI defaults to 
the altivec ABI so there is no way to return "generic" vector on darwin or ppc64-linux.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-24 06:18:55
               date|                            |
            Summary|missing error messages      |[4.0 Regression] missing
                   |passing vectors with -mno-  |error messages passing
                   |altivec -mabi=altivec       |vectors with -mno-altivec -
                   |                            |mabi=altivec
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18631


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

end of thread, other threads:[~2007-02-03 15:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18631-224@http.gcc.gnu.org/bugzilla/>
2005-10-22  3:36 ` [Bug target/18631] [4.0 Regression] missing error messages passing vectors with -mno-altivec -mabi=altivec pinskia at gcc dot gnu dot org
2005-10-22  9:52 ` paolo dot bonzini at lu dot unisi dot ch
2006-01-04  8:57 ` bonzini at gnu dot org
2006-01-05 17:52 ` janis at gcc dot gnu dot org
2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
2007-01-18  3:11 ` gdr at gcc dot gnu dot org
2007-02-03 15:31 ` gdr at gcc dot gnu dot org
2004-11-23 16:48 [Bug target/18631] New: " janis187 at us dot ibm dot com
2004-11-24  6:18 ` [Bug target/18631] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-24 16:53 ` janis187 at us dot ibm dot com

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).