This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/50571] [4.6/4.7 Regression] Undesirable folding in "m" constrained asm operands
- 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: Fri, 30 Sep 2011 15:01:31 +0000
- Subject: [Bug inline-asm/50571] [4.6/4.7 Regression] Undesirable folding in "m" constrained asm operands
- Auto-submitted: auto-generated
- References: <bug-50571-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50571
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-09-30 15:01:31 UTC ---
Author: jakub
Date: Fri Sep 30 15:01:27 2011
New Revision: 179389
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179389
Log:
PR inline-asm/50571
* gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
input constraints allow mem and not reg, pass true instead of
false as second argument to maybe_fold_reference.
* gcc.dg/pr50571.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr50571.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-fold.c
trunk/gcc/testsuite/ChangeLog