This is the mail archive of the gcc-patches@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]

[PATCH, testsuite]: Committed: Add testcase for PR tree-optimization/34407


Hello!

Attached testcase failed on x86_64-pc-linux-gnu:

pr34407.c: In function 'ReadRLEImage':
pr34407.c:4: error: incorrect sharing of tree nodes
prologue_after_cost_adjust.22_37 = (long unsigned int) D.1550_3;

(long unsigned int) D.1550_3;

pr34407.c:4: internal compiler error: verify_stmts failed


The failure is fixed in current mainline. Patch was tested on
x86_64-pc-linux-gnu and is committed to SVN in order to close the PR.

2007-12-11  Uros Bizjak  <ubizjak@gmail.com>

	PR target/34407
	* gcc.dg/vect/pr34407.c: New test.

Uros.

Index: pr34407.c
===================================================================
--- pr34407.c   (revision 0)
+++ pr34407.c   (revision 0)
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+
+extern int ReadBlobByte (void);
+
+void ReadRLEImage (unsigned char *p)
+{
+  unsigned char background_color[4] = { 0, 1, 2, 3 };
+  long j;
+
+  unsigned long number_planes = ReadBlobByte();
+
+  for (j = 0; j < (long) number_planes; j++)
+    *p++ = background_color[j];
+}
+
+/* { dg-final { cleanup-tree-dump "vect" } } */


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