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]

patch for objc failures



This patch seems to fix the objc failures with current GCC, and not
cause any regressions.

OK to commit?

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/egcs-bytefrompos.patch=============
2000-04-01  Geoffrey Keating  <geoffk@cygnus.com>

	* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
	CEIL_DIV_EXPR.

Index: stor-layout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stor-layout.c,v
retrieving revision 1.64
diff -u -p -r1.64 stor-layout.c
--- stor-layout.c	2000/03/30 11:47:07	1.64
+++ stor-layout.c	2000/04/02 22:36:51
@@ -451,7 +451,7 @@ byte_from_pos (offset, bitpos)
 {
   return size_binop (PLUS_EXPR, offset,
 		     convert (sizetype,
-			      size_binop (CEIL_DIV_EXPR, bitpos,
+			      size_binop (TRUNC_DIV_EXPR, bitpos,
 					  bitsize_unit_node)));
 }
 
============================================================

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