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 middle-end/32970] [4.3 Regression] C++ frontend can not handle vector pointer constant parameter



------- Comment #7 from uweigand at gcc dot gnu dot org  2007-08-12 23:43 -------
Sa's patch isn't quite correct as it ignores the result of
the build_qualified_type call.  The following patch should
fix that:

diff -urNp toolchain/gcc.orig/gcc/tree.c toolchain/gcc/gcc/tree.c
--- toolchain/gcc.orig/gcc/tree.c       2007-08-12 15:57:05.442520932 +0200
+++ toolchain/gcc/gcc/tree.c    2007-08-12 16:07:42.516093968 +0200
@@ -6554,10 +6554,7 @@ reconstruct_complex_type (tree type, tre
   else
     return bottom;

-  TYPE_READONLY (outer) = TYPE_READONLY (type);
-  TYPE_VOLATILE (outer) = TYPE_VOLATILE (type);
-
-  return outer;
+  return build_qualified_type (outer, TYPE_QUALS (type));
 }

 /* Returns a vector tree node given a mode (integer, vector, or BLKmode) and


-- 


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


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