Subject: CVS commit: src/gnu/dist/gcc/gcc
To: None <source-changes@NetBSD.org>
From: matthew green <mrg@netbsd.org>
List: source-changes
Date: 04/05/2004 14:32:56
Module Name:	src
Committed By:	mrg
Date:		Mon Apr  5 14:32:56 UTC 2004

Modified Files:
	src/gnu/dist/gcc/gcc: ChangeLog expr.c fold-const.c tree.h

Log Message:
apply the changes in PR#22489.

2003-07-10  Kazu Hirata	 <kazu@cs.umass.edu>

	PR c/11449
	* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
	of HOST_WIDE_INT.
	(fold_single_bit_test): If sign_bit_p() fails, assume that the
	bit being tested is not a sign bit.

2003-07-04  Jeff Law  <law@redhat.com>

	PR c/11428
	* expr.c (do_store_flag): Pass in the correct result type
	when calling fold_single_bit_test.
	* fold-const.c (fold_single_bit_test): Use result_type for the
	result when folding a sign bit test.

2003-07-02  Jeff Law  <law@redhat.com>

	* expr.c (do_store_flag): Remove special case folding for
	single bit tests.  Instead call back into the commonized folder
	routine.
	* fold-const.c (fold_single_bit_test): New function, mostly
	extracted from do_store_flag, with an additional case extracted
	from fold.
	(fold): Call fold_single_bit_test appropriately.
	* tree.h (fold_single_bit_test): Prototype.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/gnu/dist/gcc/gcc/ChangeLog
cvs rdiff -r1.1.1.4 -r1.2 src/gnu/dist/gcc/gcc/expr.c
cvs rdiff -r1.1.1.2 -r1.2 src/gnu/dist/gcc/gcc/fold-const.c
cvs rdiff -r1.1.1.3 -r1.2 src/gnu/dist/gcc/gcc/tree.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.