Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



jtc
Fri Mar 15 17:55:55 EST 1996
Update of /a/cvsroot/src/gnu/usr.bin/gcc/common
In directory pain.lcs.mit.edu:/b/tmp/cvs-serv1780

Modified Files:
        expmed.c 
Log Message:
Patch from J"orn Rennecke that fixes code generation bugs with long
long comparisons.  As of this date, this change hasn't made it into
the development sources.  We must consider this when it comes time
to integrate a newer gcc release.

Thu Mar  7 01:16:23 1996  J"orn Rennecke (amylaar%meolyon.hanse.de@localhost)

        * expmed.c (negate_rtx): Don't negate LONG_MIN if mode is wider
        than HOST_WIDE_INT.


gcc now produces worse code for this test case than gcc 2.5.8 when
invoked with -O , but it will optimize as good as gcc 2.5.8 (i.e. all
comparisons vanish) when invoked with -O2 , thus I think it doesn't
matter.  If anyone is interested in looking into this, the code in
expr.c, function expand_expr, case MINUS_EXPR, if-clause for if
(TREE_UNSIGNED (type) || TREE_OVERFLOW (negated)), will refuse to
convert the subtraction into an addition if there is an overflow in
the conversion or negation of the constant.  If both host and target
machine are binary computers with 2-complement representation, the
overflow should not matter.




Home | Main Index | Thread Index | Old Index