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 installed to fix bootstrap breakage from my previous patch


My apologies for breaking bootstrap.  In between testing/submitting my
previous patch and installation today, another change went in which
invalidated mine.  Sorry I missed that, entirely my fault.

This patch appears to be enough to build cc1.  Installed as obvious.

		--Kaveh


2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* builtins.c (fold_builtin): Fix error in last change.

diff -rup orig/egcc-CVS20040325/gcc/builtins.c egcc-CVS20040325/gcc/builtins.c
--- orig/egcc-CVS20040325/gcc/builtins.c	2004-03-25 12:46:18.000000000 -0500
+++ egcc-CVS20040325/gcc/builtins.c	2004-03-25 19:22:49.035285362 -0500
@@ -6704,7 +6704,7 @@ fold_builtin (tree exp)
 		    BUILTIN_SQRT_P (fcode) ? dconsthalf : dconstthird;
 		  
 		  /* Adjust for the outer root.  */
-		  dconstroot.exp--;
+		  SET_REAL_EXP (&dconstroot, REAL_EXP (&dconstroot) - 1);
 		  dconstroot = real_value_truncate (TYPE_MODE (type), dconstroot);
 		  tree_root = build_real (type, dconstroot);
 		  arglist = tree_cons (NULL_TREE, arg0,
@@ -6769,7 +6769,7 @@ fold_builtin (tree exp)
 		  tree tree_root;
 		  REAL_VALUE_TYPE dconstroot = dconstthird;
 
-		  dconstroot.exp--;
+		  SET_REAL_EXP (&dconstroot, REAL_EXP (&dconstroot) - 1);
 		  dconstroot = real_value_truncate (TYPE_MODE (type), dconstroot);
 		  tree_root = build_real (type, dconstroot);
 		  arglist = tree_cons (NULL_TREE, arg0,


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