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 libstdc++/12208] ICE in cmath:399: internal compiler error: RTL flag check: MEM_VOLATILE_P used with unexpected rtx code `reg' in set_mem_attributes_minus_bitpos, at emit-rtl.c:1835


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-08 14:21 -------
I think this is the same bug as PR 12168, Can you try this patch?
Index: method.c
============================================================
=======
RCS file: /cvsroot/gcc/gcc/gcc/cp/method.c,v
retrieving revision 1.266
diff -C5 -u -r1.266 method.c
cvs server: conflicting specifications of output style
--- method.c    15 Aug 2003 08:55:48 -0000      1.266
+++ method.c    4 Sep 2003 16:13:01 -0000
@@ -424,10 +424,11 @@
       for (a = DECL_ARGUMENTS (function); a; a = TREE_CHAIN (a))
        {
          tree x = copy_node (a);
          TREE_CHAIN (x) = t;
          DECL_CONTEXT (x) = thunk_fndecl;
+         SET_DECL_RTL (x, NULL_RTX);
          t = x;
        }
       a = nreverse (t);
       DECL_ARGUMENTS (thunk_fndecl) = a;
       DECL_RESULT (thunk_fndecl) = NULL_TREE;


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