This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/33505] Vectorizer (or spu target builtins) and PCH don't get along



------- Comment #1 from irar at il dot ibm dot com  2007-09-30 09:42 -------
I managed to reproduce it. 

Here http://gcc.gnu.org/ml/gcc-patches/2007-09/msg01559.html Richard suggested
to add a GTY(()) to
struct spu_builtin_description spu_builtins[] = {
#define DEF_BUILTIN(fcode, icode, name, type, params) \
  {fcode, icode, name, type, params, NULL_TREE},
#include "spu-builtins.def"
#undef DEF_BUILTIN
};

Actually there is a GTY(()) in spu-builtins.h
 extern GTY(()) struct spu_builtin_description spu_builtins[];

But anyway I tried to the following and it didn't help:
Index: spu.c
===================================================================
--- spu.c       (revision 128708)
+++ spu.c       (working copy)
@@ -4459,7 +4459,7 @@
 ^L
 /* Create the built-in types and functions */

-struct spu_builtin_description spu_builtins[] = {
+struct spu_builtin_description GTY (()) spu_builtins[] = {
 #define DEF_BUILTIN(fcode, icode, name, type, params) \
   {fcode, icode, name, type, params, NULL_TREE},
 #include "spu-builtins.def"

Ira


-- 

irar at il dot ibm dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |irar at il dot ibm dot com,
                   |                            |richard dot guenther at
                   |                            |gmail dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-30 09:42:56
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]