public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18583] New: error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
@ 2004-11-20 22:06 lu_zero at gentoo dot org
  2004-11-20 22:08 ` [Bug target/18583] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: lu_zero at gentoo dot org @ 2004-11-20 22:06 UTC (permalink / raw)
  To: gcc-bugs

If you try to have a constant array of vectors on gcc-3.4.3 you you may get
parse errors when they shouldn't.
All seems related to the vector definition and where you place the const attribute.
If you define each array element constant and vector is defined as __vector ->
__attribute__((altivec(__vector))), you may get a parse error; if vector is
defined as __attribute__((vector_size(16))) all works.

If isn't a parser bug, is a documentation issue.

please look at the testcase for further details

-- 
           Summary: error on valid code: const
                    __attribute__((altivec(vector__))) doesn't work in
                    arrays
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lu_zero at gentoo dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-18583-5791@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-11 16:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-20 22:06 [Bug c/18583] New: error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays lu_zero at gentoo dot org
2004-11-20 22:08 ` [Bug target/18583] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-11-20 22:09 ` lu_zero at gentoo dot org
2004-11-20 22:10 ` pinskia at gcc dot gnu dot org
2004-11-20 22:35 ` pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-06-09 21:46 ` aldyh at gcc dot gnu dot org
2005-06-09 22:02 ` aldyh at gcc dot gnu dot org
2005-09-02 20:51 ` janis at gcc dot gnu dot org
2005-09-13 18:18 ` janis at gcc dot gnu dot org
     [not found] <bug-18583-5791@http.gcc.gnu.org/bugzilla/>
2005-10-04 19:20 ` janis187 at us dot ibm dot com
2005-10-11 16:22 ` janis at gcc dot gnu dot org
2005-10-11 16:45 ` 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).