public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16155] New: Altivec compilation fails with -ansi
@ 2004-06-23  9:37 paulus at samba dot org
  2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: paulus at samba dot org @ 2004-06-23  9:37 UTC (permalink / raw)
  To: gcc-bugs

Compilation of a simple altivec test program fails if the -ansi flag is
given to gcc.  When compiled with

gcc -maltivec -c -ansi foo.c

I get the error:

foo.c: In function `foo':
foo.c:6: error: parse error before "typeof"

foo.c contains:

#include <altivec.h>

void foo(void)
{
        vector unsigned short a, b;
        a = vec_splat(b, 0);
}

Without the -ansi flag the compilation succeeds.

-- 
           Summary: Altivec compilation fails with -ansi
           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=16155


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

* [Bug c/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
@ 2004-06-23 10:01 ` segher at kernel dot crashing dot org
  2004-06-23 15:19 ` [Bug target/16155] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: segher at kernel dot crashing dot org @ 2004-06-23 10:01 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segher at kernel dot
                   |                            |crashing dot org


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
  2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
@ 2004-06-23 15:19 ` pinskia at gcc dot gnu dot org
  2004-06-24  5:33 ` bje at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-23 15:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-23 15:18 -------
Confirmed, the problem is that the altivec header forgets to add __extension__ before typeof.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |target
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-23 15:18:07
               date|                            |


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
  2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
  2004-06-23 15:19 ` [Bug target/16155] " pinskia at gcc dot gnu dot org
@ 2004-06-24  5:33 ` bje at gcc dot gnu dot org
  2004-07-30  6:25 ` bje 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-06-24  5:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2004-06-24 05:10 -------
I'll handle this one. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bje at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (2 preceding siblings ...)
  2004-06-24  5:33 ` bje at gcc dot gnu dot org
@ 2004-07-30  6:25 ` bje at gcc dot gnu dot org
  2004-07-30  7:02 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-07-30  6:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2004-07-30 06:25 -------
About to submit a patch for mainline (currently running the testsuite).

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


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (3 preceding siblings ...)
  2004-07-30  6:25 ` bje at gcc dot gnu dot org
@ 2004-07-30  7:02 ` pinskia at gcc dot gnu dot org
  2004-07-30 13:51 ` giovannibajo at libero dot it
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-30  7:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-30 07:02 -------
Reopening as the patch has not been applied yet.

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


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (4 preceding siblings ...)
  2004-07-30  7:02 ` pinskia at gcc dot gnu dot org
@ 2004-07-30 13:51 ` giovannibajo at libero dot it
  2004-08-02  1:05 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2004-07-30 13:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-07-30 13:51 -------
Is this a regression? Otherwise it can't be applied to 3.4.

-- 


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (5 preceding siblings ...)
  2004-07-30 13:51 ` giovannibajo at libero dot it
@ 2004-08-02  1:05 ` cvs-commit at gcc dot gnu dot org
  2004-08-02  1:23 ` bje at gcc dot gnu dot org
  2004-08-02  1:24 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-02  1:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-02 01:05 -------
Subject: Bug 16155

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bje@gcc.gnu.org	2004-08-02 01:05:47

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

Log message:
	Patch for PR target/16155.
	
	2004-08-02  Ben Elliston  <bje@au.ibm.com>
	
	PR target/16155
	* config/rs6000/altivec.h: Replace typeof with __typeof__.
	
	[testsuite]
	2004-08-02  Ben Elliston  <bje@au.ibm.com>
	
	* gcc.dg/pr16155.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4756&r2=2.4757
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/altivec.h.diff?cvsroot=gcc&r1=1.40&r2=1.41
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4078&r2=1.4079
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr16155.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (6 preceding siblings ...)
  2004-08-02  1:05 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-02  1:23 ` bje at gcc dot gnu dot org
  2004-08-02  1:24 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-08-02  1:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2004-08-02 01:23 -------
Patch applied to mainline.

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


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


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

* [Bug target/16155] Altivec compilation fails with -ansi
  2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
                   ` (7 preceding siblings ...)
  2004-08-02  1:23 ` bje at gcc dot gnu dot org
@ 2004-08-02  1:24 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02  1:24 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

end of thread, other threads:[~2004-08-02  1:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-23  9:37 [Bug c/16155] New: Altivec compilation fails with -ansi paulus at samba dot org
2004-06-23 10:01 ` [Bug c/16155] " segher at kernel dot crashing dot org
2004-06-23 15:19 ` [Bug target/16155] " pinskia at gcc dot gnu dot org
2004-06-24  5:33 ` bje at gcc dot gnu dot org
2004-07-30  6:25 ` bje at gcc dot gnu dot org
2004-07-30  7:02 ` pinskia at gcc dot gnu dot org
2004-07-30 13:51 ` giovannibajo at libero dot it
2004-08-02  1:05 ` cvs-commit at gcc dot gnu dot org
2004-08-02  1:23 ` bje at gcc dot gnu dot org
2004-08-02  1:24 ` pinskia at gcc dot gnu dot org

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