This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/60971] [4.9/4.10 Regression] Wrong code when coercing unsigned char to bool


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]