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/33273] FAIL: 27_io/basic_istream/ignore/char/1.cc (test for excess errors)



------- Comment #3 from danglin at gcc dot gnu dot org  2007-09-01 15:25 -------
Sorry Sandra, I see looking at the backtrace in more detail that the ICE
arises from the new code added here:

2007-08-24  Jakub Jelinek  <jakub@redhat.com>

        * expr.c (store_expr): Optimize initialization of an array
        with STRING_CST.

It looks like the problem is here:

+      dest_mem = target;
+
+      dest_mem = store_by_pieces (dest_mem,
+                                 str_copy_len, builtin_strncpy_read_str,
+                                 (void *) TREE_STRING_POINTER (exp),
+                                 MEM_ALIGN (target),
+                                 exp_len > str_copy_len ? 1 : 0);

The memory pointer returned by store_by_pieces is QImode.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at redhat dot com


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


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