[Bug optimization/11937] [3.3 Regression] bogus warning while compiling gcc/function.c
uwe at ptc dot spbu dot ru
gcc-bugzilla@gcc.gnu.org
Sat Aug 16 02:18:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11937
------- Additional Comments From uwe at ptc dot spbu dot ru 2003-08-16 02:18 -------
Subject: Re: [3.3 Regression] bogus warning while compiling gcc/function.c
The warning goes away after applying
expr.c: 1.561, 1.562
fold-const.c: 1.273, 1.276
tree.h: 1.419
to the gcc-3.3 branch (patches applied cleanly, with offset).
Relevant changelog entries:
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.
Thanks!
More information about the Gcc-bugs
mailing list