This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48973] [4.3/4.4/4.5/4.6/4.7 Regression] Inliner bug with one-bit (1-bit) bitfield
- 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: Mon, 23 May 2011 09:58:12 +0000
- Subject: [Bug middle-end/48973] [4.3/4.4/4.5/4.6/4.7 Regression] Inliner bug with one-bit (1-bit) bitfield
- Auto-submitted: auto-generated
- References: <bug-48973-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48973
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-23 09:36:09 UTC ---
Author: jakub
Date: Mon May 23 09:36:05 2011
New Revision: 174060
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174060
Log:
PR middle-end/48973
* expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
failed and the comparison has a single bit signed type, use
constm1_rtx instead of const1_rtx for true value.
(do_store_flag): If ops->type is single bit signed type, disable
signel bit test optimization and pass -1 instead of 1 as last
parameter to emit_store_flag_force.
* gcc.c-torture/execute/pr48973-1.c: New test.
* gcc.c-torture/execute/pr48973-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr48973-1.c
trunk/gcc/testsuite/gcc.c-torture/execute/pr48973-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/expr.c
trunk/gcc/testsuite/ChangeLog