public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16286] New: Compile errors on altivec ops after #undef vector
@ 2004-06-30  0:30 paulus at samba dot org
  2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: paulus at samba dot org @ 2004-06-30  0:30 UTC (permalink / raw)
  To: gcc-bugs

The Altivec PIM says that programs may #undef vector and/or pixel if desired.
However, doing that with the current <altivec.h> leads to compile errors.
This test program:

#include <altivec.h>
#undef vector

void test(void)
{
        __vector unsigned int a, b;
        a = vec_and(a, b);
}

gives the error:

vb2.c: In function `test':
vb2.c:8: error: parse error before "vector"

when compiled with gcc -c -maltivec.  If I take out the #undef vector then
the error doesn't occur.

-- 
           Summary: Compile errors on altivec ops after #undef vector
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paulus at samba dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-linux
  GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux


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


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

* [Bug c/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
@ 2004-06-30  0:35 ` bje at gcc dot gnu dot org
  2004-08-12 11:02 ` [Bug target/16286] " cvs-commit at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-06-30  0:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bje at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-30 00:30:46
               date|                            |


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
  2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
@ 2004-08-12 11:02 ` cvs-commit at gcc dot gnu dot org
  2004-08-12 11:03 ` bje at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-12 11:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-12 11:02 -------
Subject: Bug 16286

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bje@gcc.gnu.org	2004-08-12 11:02:38

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: altivec.h 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr16286.c 

Log message:
	Patch for PR target/16286
	
	2004-08-12  Ben Elliston  <bje@au.ibm.com>
	
	* config/rs6000/altivec.h: Change vector to __vector throughout.
	(Except for the `vector' macro itself).
	
	[testsuite]
	2004-08-12  Ben Elliston  <bje@au.ibm.com>
	
	* gcc.dg/pr16286.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4876&r2=2.4877
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/altivec.h.diff?cvsroot=gcc&r1=1.41&r2=1.42
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4123&r2=1.4124
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr16286.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
  2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
  2004-08-12 11:02 ` [Bug target/16286] " cvs-commit at gcc dot gnu dot org
@ 2004-08-12 11:03 ` bje at gcc dot gnu dot org
  2004-08-12 14:20 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-08-12 11:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2004-08-12 11:03 -------
Applied.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (2 preceding siblings ...)
  2004-08-12 11:03 ` bje at gcc dot gnu dot org
@ 2004-08-12 14:20 ` pinskia at gcc dot gnu dot org
  2004-08-17  0:27 ` janis187 at us dot ibm dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-12 14:20 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (3 preceding siblings ...)
  2004-08-12 14:20 ` pinskia at gcc dot gnu dot org
@ 2004-08-17  0:27 ` janis187 at us dot ibm dot com
  2004-08-20 12:42 ` bje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: janis187 at us dot ibm dot com @ 2004-08-17  0:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From janis187 at us dot ibm dot com  2004-08-17 00:27 -------
Ben, are you going to fix 'pixel' and 'bool' as well?  It should be possible to
#undef those identifiers.

-- 


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (4 preceding siblings ...)
  2004-08-17  0:27 ` janis187 at us dot ibm dot com
@ 2004-08-20 12:42 ` bje at gcc dot gnu dot org
  2004-11-01 13:28 ` schwab at suse dot de
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-08-20 12:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2004-08-20 12:41 -------
(In reply to comment #3)
> Ben, are you going to fix 'pixel' and 'bool' as well?  It should be possible to
> #undef those identifiers.

Yes, I have a patch and a revised test case that I will submit shortly.
Thanks for reminding me.

-- 


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (5 preceding siblings ...)
  2004-08-20 12:42 ` bje at gcc dot gnu dot org
@ 2004-11-01 13:28 ` schwab at suse dot de
  2004-11-06 20:19 ` cvs-commit at gcc dot gnu dot org
  2004-11-06 20:25 ` schwab at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: schwab at suse dot de @ 2004-11-01 13:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-11-01 13:28 -------
Followup patch <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00848.html>. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Keywords|                            |patch
         Resolution|FIXED                       |


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (6 preceding siblings ...)
  2004-11-01 13:28 ` schwab at suse dot de
@ 2004-11-06 20:19 ` cvs-commit at gcc dot gnu dot org
  2004-11-06 20:25 ` schwab at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-06 20:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-06 20:19 -------
Subject: Bug 16286

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	schwab@gcc.gnu.org	2004-11-06 20:19:02

Modified files:
	gcc/testsuite/gcc.dg: pr16286.c 
	gcc/config/rs6000: altivec.h 
	gcc            : ChangeLog 
	gcc/testsuite  : ChangeLog 

Log message:
	PR target/16286
	* config/rs6000/altivec.h: Replace bool by __bool and pixel by
	__pixel.
	
	testsuite:
	* gcc.dg/pr16286.c: Also test for bool and pixel.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr16286.c.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/altivec.h.diff?cvsroot=gcc&r1=1.43&r2=1.44
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6209&r2=2.6210
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4558&r2=1.4559



-- 


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


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

* [Bug target/16286] Compile errors on altivec ops after #undef vector
  2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
                   ` (7 preceding siblings ...)
  2004-11-06 20:19 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-06 20:25 ` schwab at suse dot de
  8 siblings, 0 replies; 10+ messages in thread
From: schwab at suse dot de @ 2004-11-06 20:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-11-06 20:25 -------
Finally fixed. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-11-06 20:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30  0:30 [Bug c/16286] New: Compile errors on altivec ops after #undef vector paulus at samba dot org
2004-06-30  0:35 ` [Bug c/16286] " bje at gcc dot gnu dot org
2004-08-12 11:02 ` [Bug target/16286] " cvs-commit at gcc dot gnu dot org
2004-08-12 11:03 ` bje at gcc dot gnu dot org
2004-08-12 14:20 ` pinskia at gcc dot gnu dot org
2004-08-17  0:27 ` janis187 at us dot ibm dot com
2004-08-20 12:42 ` bje at gcc dot gnu dot org
2004-11-01 13:28 ` schwab at suse dot de
2004-11-06 20:19 ` cvs-commit at gcc dot gnu dot org
2004-11-06 20:25 ` schwab at suse dot de

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