PERFORCE change 17446 for review
Adam Migus
amigus at freebsd.org
Fri Sep 13 16:02:36 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17446
Change 17446 by amigus at amigus_caster on 2002/09/13 09:01:38
Fixes to make kde3 compile.
Affected files ...
.. //depot/projects/trustedbsd/base/contrib/gcc/calls.c#7 edit
.. //depot/projects/trustedbsd/base/contrib/gcc/cp/cp-lang.c#3 edit
.. //depot/projects/trustedbsd/base/contrib/gcc/loop.c#8 edit
Differences ...
==== //depot/projects/trustedbsd/base/contrib/gcc/calls.c#7 (text+ko) ====
@@ -4491,7 +4491,7 @@
emit_push_insn for BLKmode is careful to avoid it. */
excess = (arg->size.constant - int_size_in_bytes (TREE_TYPE (pval))
+ partial * UNITS_PER_WORD);
- size_rtx = expr_size (pval);
+ size_rtx = GEN_INT (int_size_in_bytes (TREE_TYPE (pval)));
}
if ((flags & ECF_SIBCALL) && GET_CODE (arg->value) == MEM)
==== //depot/projects/trustedbsd/base/contrib/gcc/cp/cp-lang.c#3 (text+ko) ====
@@ -122,14 +122,8 @@
{
if (CLASS_TYPE_P (TREE_TYPE (exp)))
{
- /* The backend should not be interested in the size of an expression
- of a type with both of these set; all copies of such types must go
- through a constructor or assignment op. */
- if (TYPE_HAS_COMPLEX_INIT_REF (TREE_TYPE (exp))
- && TYPE_HAS_COMPLEX_ASSIGN_REF (TREE_TYPE (exp)))
- abort ();
- /* This would be wrong for a type with virtual bases, but they are
- caught by the abort above. */
+ /* This would be wrong for a type with virtual bases, but they should
+ not get here. */
return CLASSTYPE_SIZE_UNIT (TREE_TYPE (exp));
}
else
==== //depot/projects/trustedbsd/base/contrib/gcc/loop.c#8 (text+ko) ====
@@ -9264,7 +9264,7 @@
{
case LE:
if ((unsigned HOST_WIDE_INT) const_val != max_val >> 1)
- code = LT, op1 = GEN_INT (const_val + 1);
+ code = LT, op1 = gen_int_mode (const_val + 1, GET_MODE (op0));
break;
/* When cross-compiling, const_val might be sign-extended from
@@ -9273,17 +9273,17 @@
if ((HOST_WIDE_INT) (const_val & max_val)
!= (((HOST_WIDE_INT) 1
<< (GET_MODE_BITSIZE (GET_MODE (op0)) - 1))))
- code = GT, op1 = GEN_INT (const_val - 1);
+ code = GT, op1 = gen_int_mode (const_val - 1, GET_MODE (op0));
break;
case LEU:
if (uconst_val < max_val)
- code = LTU, op1 = GEN_INT (uconst_val + 1);
+ code = LTU, op1 = gen_int_mode (uconst_val + 1, GET_MODE (op0));
break;
case GEU:
if (uconst_val != 0)
- code = GTU, op1 = GEN_INT (uconst_val - 1);
+ code = GTU, op1 = gen_int_mode (uconst_val - 1, GET_MODE (op0));
break;
default:
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list