rpms/gcc/devel gcc41-revert-pr28915.patch, NONE, 1.1 gcc41.spec, 1.118, 1.119

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Nov 14 10:58:57 UTC 2006


Author: jakub

Update of /cvs/dist/rpms/gcc/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv21916

Modified Files:
	gcc41.spec 
Added Files:
	gcc41-revert-pr28915.patch 
Log Message:
4.1.1-36

gcc41-revert-pr28915.patch:
 0 files changed

--- NEW FILE gcc41-revert-pr28915.patch ---
Revert:
2006-11-12  Jason Merrill  <jason at redhat.com>
	    Andrew Pinski <pinskia at physics.uc.edu>

	PR middle-end/28915
	* gimplify.c (gimplify_init_constructor): Don't reduce TREE_CONSTANT
	vector ctors.
	* tree-cfg.c (verify_expr): Don't look into TREE_CONSTANT
	vector ctors.
	* expmed.c (make_tree): Handle CONST, SYMBOL_REF.
	* tree.c (build_vector): Handle non-_CST elements.

	* gcc.target/i386/vectorize1.c: New.

--- gcc/tree.c	(revision 118786)
+++ gcc/tree.c	(revision 118785)
@@ -908,10 +908,6 @@ build_vector (tree type, tree vals)
     {
       tree value = TREE_VALUE (link);
 
-      /* Don't crash if we get an address constant.  */
-      if (!CONSTANT_CLASS_P (value))
-	continue;
-
       over1 |= TREE_OVERFLOW (value);
       over2 |= TREE_CONSTANT_OVERFLOW (value);
     }
--- gcc/testsuite/gcc.target/i386/vectorize1.c	(revision 118786)
+++ gcc/testsuite/gcc.target/i386/vectorize1.c	(revision 118785)
@@ -1,18 +0,0 @@
-/* PR middle-end/28915 */
-/* { dg-options "-msse -O2 -ftree-vectorize -fdump-tree-vect" } */
-
-extern char lanip[3][40];
-typedef struct
-{
-  char *t[4];
-}tx_typ;
-
-int set_names (void)
-{
-  static tx_typ tt1;
-  int ln;
-  for (ln = 0; ln < 4; ln++)
-      tt1.t[ln] = lanip[1];
-}
-
-/* { dg-final { scan-tree-dump "vect_cst" "vect" } } */
--- gcc/gimplify.c	(revision 118786)
+++ gcc/gimplify.c	(revision 118785)
@@ -2976,11 +2976,6 @@ gimplify_init_constructor (tree *expr_p,
 		TREE_OPERAND (*expr_p, 1) = build_vector_from_ctor (type, elts);
 		break;
 	      }
-
-	    /* Don't reduce a TREE_CONSTANT vector ctor even if we can't
-	       make a VECTOR_CST.  It won't do anything for us, and it'll
-	       prevent us from representing it as a single constant.  */
-	    break;
 	  }
 
 	/* Vector types use CONSTRUCTOR all the way through gimple
--- gcc/expmed.c	(revision 118786)
+++ gcc/expmed.c	(revision 118785)
@@ -5031,15 +5031,6 @@ make_tree (tree type, rtx x)
 					  GET_CODE (x) == ZERO_EXTEND);
       return fold_convert (type, make_tree (t, XEXP (x, 0)));
 
-    case CONST:
-      return make_tree (type, XEXP (x, 0));
-
-    case SYMBOL_REF:
-      t = SYMBOL_REF_DECL (x);
-      if (t)
-	return fold_convert (type, build_fold_addr_expr (t));
-      /* else fall through.  */
-
     default:
       t = build_decl (VAR_DECL, NULL_TREE, type);
 
--- gcc/tree-cfg.c	(revision 118786)
+++ gcc/tree-cfg.c	(revision 118785)
@@ -3366,11 +3366,6 @@ verify_expr (tree *tp, int *walk_subtree
       CHECK_OP (1, "invalid operand to binary operator");
       break;
 
-    case CONSTRUCTOR:
-      if (TREE_CONSTANT (t) && TREE_CODE (TREE_TYPE (t)) == VECTOR_TYPE)
-	*walk_subtrees = 0;
-      break;
-
     default:
       break;
     }


Index: gcc41.spec
===================================================================
RCS file: /cvs/dist/rpms/gcc/devel/gcc41.spec,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- gcc41.spec	14 Nov 2006 08:04:53 -0000	1.118
+++ gcc41.spec	14 Nov 2006 10:58:55 -0000	1.119
@@ -137,6 +137,7 @@
 Patch29: gcc41-pr29703.patch
 Patch30: gcc41-pr29299.patch
 Patch31: gcc41-pr29581.patch
+Patch32: gcc41-revert-pr28915.patch
 
 %define _gnu %{nil}
 %ifarch sparc
@@ -451,6 +452,7 @@
 %patch29 -p0 -b .pr29703~
 %patch30 -p0 -b .pr29299~
 %patch31 -p0 -b .pr29581~
+%patch32 -p0 -b .revert-pr28915~
 
 sed -i -e 's/4\.1\.2/4.1.1/' gcc/BASE-VER gcc/version.c
 sed -i -e 's/" (Red Hat[^)]*)"/" (Red Hat %{version}-%{gcc_release})"/' gcc/version.c
@@ -1515,7 +1517,7 @@
   - PRs c++/29106, c++/29518, fortran/24518, fortran/29216, fortran/29314,
 	fortran/29371, fortran/29387, fortran/29392, fortran/29490,
 	fortran/29565, fortran/29630, fortran/29679, fortran/29713,
-	middle-end/21032, middle-end/28915, testsuite/28703, tree-opt/28545
+	middle-end/21032, testsuite/28703, tree-opt/28545
 - honor initial conditions and variable types in conversion to perfect
   nesting for -ftree-loop-linear optimizations (#209297,
   PR tree-optimization/29581)




More information about the fedora-cvs-commits mailing list