From ab70d825c6eda82882708757b89f80b8f2f1d2f6 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 1 Jul 2011 06:56:18 +0000 Subject: [PATCH] re PR middle-end/49603 (177.mesa in SPEC CPU 2000 failed to build) 2011-07-01 Richard Guenther PR tree-optimization/49603 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert. * gcc.dg/torture/pr49603.c: New testcase. From-SVN: r175746 --- gcc/ChangeLog | 6 ++++++ gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/pr49603.c | 19 +++++++++++++++++++ gcc/tree-vect-stmts.c | 19 +++++++------------ 4 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/torture/pr49603.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fc1cd55b8e..6c4a488b9f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-01 Richard Guenther + + PR tree-optimization/49603 + * tree-vect-stmts.c (vectorizable_load): Remove unnecessary + assert. + 2011-06-30 Martin Jambor * tree-sra.c (struct access): Rename total_scalarization to diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7715ae0e32e..17046d6391b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-01 Richard Guenther + + PR tree-optimization/49603 + * gcc.dg/torture/pr49603.c: New testcase. + 2011-06-30 Jason Merrill PR c++/49387 diff --git a/gcc/testsuite/gcc.dg/torture/pr49603.c b/gcc/testsuite/gcc.dg/torture/pr49603.c new file mode 100644 index 00000000000..90f51e5059c --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr49603.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ + +struct gl_visual { + float AlphaScale; +}; +struct gl_context { + struct gl_visual *Visual; +}; +void quickdraw_rgb( struct gl_context * ctx, + int width, int height) +{ + int i, j; + unsigned char alpha[1600]; + for (j=0; jVisual->AlphaScale; + for (i=0; i