This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/60971] [4.9/4.10 Regression] Wrong code when coercing unsigned char to bool
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Apr 2014 09:29:30 +0000
- Subject: [Bug tree-optimization/60971] [4.9/4.10 Regression] Wrong code when coercing unsigned char to bool
- Auto-submitted: auto-generated
- References: <bug-60971-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60971
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 32702
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32702&action=edit
gcc49-pr60971.patch
Agreed, but I'd say the bug is in the tailc pass then, it assumes conversion
from QImode integer type with 8-bit precision to QImode bool type with 1-bit
precision doesn't need any code, when that is not true, during expansion in
those cases we apply REDUCE_BIT_FIELD.